Solving Trapping Rain Water on leetcode.