Code for CodeEval challenges