leetcode, Trapping Rain Water, first try