prob_35 solve flowkater Ruby