solved problem 28 again in ruby