CodeEval Problem #96