prob_29 solve Ruby flowkater