Dell Technologies interview question

trapping rain water question was asked leetcode emdium hard