Amazon Interview Question

Trapping Rain Water Some advanced task on Topological Sort