Some solutions to CodeEval coding problems