solved problem 32 again in ruby