Add solution to longest-words problem in Ruby