Mathpix Snip Interview Question

Leetcode - Trapping rain water