Solve codeeval challenges