TikTok interview question

Leetcode 42. Trapping Rain Water