Solutions to CodeEval.com challenges