Goldman Sachs Interview Question

Rain water trapping question-very common