Solutions to codeeval.com challenges