Codeeval challenges in Ruby