Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Your solution must operate in strict O(N) time complexity and optimal O(1) auxiliary space complexity using two opposing spatial memory pointers.