Cisco Interview Question

Trapping Rain Water Problem as seen on leet code.