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 kitchen. You can only add or remove the top plate. If there are no plates, the stack is empty. If the stack reaches the shelf's height limit, it is full.
Top -> [item3] -> [item2] -> [item1] -> null Index: 2 1 0 Top points to the last added item.
