Codeeval.com problem solutions