prob_28 Ruby flowkater solve