Mental Model
A stack is like a pile where you can only add or remove things from the top. It helps solve problems where you need to remember things in the order you saw them, but only use the most recent one first.
Analogy: Imagine a stack of plates in your kitchen. You put new plates on top and take plates from the top only. This way, the last plate you put is the first one you take out.
Top -> [Plate3] -> [Plate2] -> [Plate1] -> null Only the top plate can be taken or added.
