Problem 1 [Ruby]