Solutions to CodeEval challenges