Intel Corporation Interview Question

solve the Trapping Rain Water problem from Leetcode