Solutions to CodeEval coding challenges