Solutions for codeeval challenges