Dell Technologies Interview Question

trapping rain water question was asked leetcode emdium hard