problem 1 ruby

ruby one liner to problem 1