Amazon interview question

Trapping Rain Water problem leetcode medium