Mental Model
A dynamic stack grows its storage automatically when full by creating a bigger array and copying items over.
Analogy: Imagine a stack of plates on a small tray. When the tray is full, you get a bigger tray and move all plates there so you can keep stacking more.
Stack array: [1, 2, 3, _, _] Top index: ↑3 (points to next free slot) Capacity: 5
