Trapping Rain Water Leetcode Solution Python