Mental Model
Imagine bars of different heights and rainwater trapped between them. The water above each bar depends on the tallest bars to its left and right.
Analogy: Think of a row of buildings with different heights after rain. Water collects in the dips between taller buildings, like puddles trapped between walls.
Height bars: 3 0 2 0 4 Visual: 4 | ↑ 3 | ↑ | 2 | | ↑ | 1 | | | | 0 |_|___|_|_
