Solution for the problems on codeeval.com