Various code challenges taken from around the web (CodeEval, Project Euler, Reddit)