Apple interview question

Leetcode trapping rain water hard problem