prob_12 solve flowkater