solutions to codeeval chall.