Water Pouring problem

Hard coded. Needs a general solution