bp Interview Question

Trapping rain water from leetcode.