Simulate the cup tower overflow behavior to calculate the amount of water in some cup, O(level^2) solution.