my attempts on codeeval.com