Solve problem 203 using Ruby.