update solution for leetcode Trapping Rain Water