ruby - problem 2