Mental Model
A stack is like a pile where you add or remove items only from the top. Checking if it is empty means seeing if there is nothing in the pile, and checking if it is full means seeing if the pile has reached its limit.
Analogy: Imagine a stack of plates in a cupboard. You can only take the top plate or add a new plate on top. If there are no plates, the stack is empty. If the cupboard is full and cannot hold more plates, the stack is full.
Top -> [ ] -> [ ] -> [ ] -> null Index 0 1 2 βtop points here if stack has items
