Part 1 is simple, drink all beer untill time runs out:
Continue