Kata2 in Ruby