Apple Interview Question

Leetcode trapping rain water hard problem