solved problem 20 again in ruby