LeetCode: trap water