Solutions to codeeval.com problems