Add a O(1) space solution to trapping rain water of leetcode