prob_5 solve flowkater
flowkater prob_5 code refactoring