Simple programming problem based on the Barrel of Monkeys game.