Mental Model
A stack stores items in order, last in first out. It can be built using a linked list or an array, each with different strengths and weaknesses.
Analogy: Think of a stack like a stack of plates. Using an array is like having a fixed-size tray where plates are stacked, while a linked list is like stacking plates one by one without a fixed tray size.
Array Stack: [bottom] 1 [2] 2 [3] 3 [top] Linked List Stack: 3 -> 2 -> 1 -> null (top is left side in linked list)
