Mental Model
A stack is like a pile where you add or remove items only from the top. Using an array, we keep track of the top position to add or remove elements.
Analogy: Imagine a stack of plates. You can only put a new plate on top or take the top plate off. The array is like a shelf with fixed spots, and the top pointer shows where the last plate is.
Array: [ _ , _ , _ , _ , _ ] Top: -1 (means empty stack)
