Mental Model
We want to find two lines that hold the most water between them by checking pairs from the edges inward.
Analogy: Imagine two walls on a beach holding water between them; moving the shorter wall inward might find a taller wall to hold more water.
Height array: [1, 8, 6, 2, 5, 4, 8, 3, 7] Positions: 0 1 2 3 4 5 6 7 8 Pointers: ā ā
