problem 1 ruby

problem 1 ruby