How much water is going to be accumulated in puddles between walls
Topological sorting