Mental Model
A stack is a collection where you add and remove items from the top. A dynamic stack uses an array that grows bigger when needed so it never runs out of space.
Analogy: Imagine a stack of plates that you keep adding on top. If the stack gets too tall for your shelf, you get a bigger shelf to hold more plates without throwing any away.
Stack array: [ 5, 3, 7, _, _, _ ] Top index: ↑
