A software puzzle written for the Microsoft Intern PuzzleDay 2008