Solved CodeEval exercises