Mental Model
A stack is a collection where you add and remove items from the top. When the array holding the stack is full, we create a bigger array and move everything there.
Analogy: Imagine a stack of plates on a table. When the table is too small to hold more plates, you get a bigger table and move all plates there so you can keep stacking.
Stack array: [ 1, 2, 3, null, null ] Top index: ↑ 2 (points to 3) null means empty space ready for new items
