The Balls and Boxes Puzzle