Solutions to codeeval coding challenges