People.ai interview question

For the algorithm interview I was asked to solve the Trapping Rain Water problem from Leetcode