Mental Model
A stack is a collection where you add and remove items only from the top. When the stack is full, we make the storage bigger automatically to hold more items.
Analogy: Imagine a stack of plates. You can only add or take the top plate. If the stack gets too tall for your shelf, you get a bigger shelf to hold more plates.
Stack array: [ 1, 2, 3, _, _ ] Top index: ↑ (points to 3) Capacity: 5 Size: 3
