Solutions to CodeEval problems