prob_24 ruby solby solving..