codeeval attempt