https://leetcode.com/problems/trapping-rain-water/?envType=problem-list-v2&envId=dynamic-programming