Solutions for codeeval exercises.