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; the water amount depends on the shorter wall and the distance between them.
height array: [1] [8] [6] [2] [5] [4] [8] [3] [7] indexes: 0 1 2 3 4 5 6 7 8 left pointer ↑ right pointer ↑
