my attempts at solving problems from codeeval