Mental Model
A stack is like a pile where you add and remove items only from the top. Using an array means we keep items in a list and track the top position.
Analogy: Imagine a stack of plates on a table. You can only add a new plate on top or take the top plate off. The array is like the table holding the plates in order.
Array: [ ] [ ] [ ] [ ] [ ] Index: 0 1 2 3 4 Top -> -1 means empty stack
