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 anywhere anytime.
Analogy: Imagine a stack of plates in a cafeteria: you can only take the top plate or add a new plate on top. An array is like a shelf where you can pick any plate from any position.
Array: [1][2][3][4][5]
Stack: 5 -> 4 -> 3 -> 2 -> 1 -> null
↑top