Goldman Sachs Interview Question

Trapping rain water leetcode hard question