Codeeval.com coding challenges solutions in Java