Water at index i = min(maxLeft[i], maxRight[i]) − height[i].
When maxL ≤ maxR, the left pointer's limiting boundary is definitely maxL (right wall is taller), so water = maxL − h[L].
We don't need to know the actual min — the smaller side's max IS the bottleneck.