Add a solution for problem 06 in Ruby.