Mental Model
A stack is like a special box where you can only add or remove items from the top, unlike an array where you can access any item anywhere.
Analogy: Imagine a stack as a stack of plates: you can only put a new plate on top or take the top plate off. An array is like a shelf where you can grab any plate from any position directly.
Array: [1][2][3][4][5]
Stack: 5 (top) ↑
4
3
2
1 (bottom)