Mental Model
A stack works like a pile where you add and remove from the top. A queue works like a line where you add at the end and remove from the front. We use a queue to act like a stack by rearranging elements after each add.
Analogy: Imagine a line of people where the last person to join wants to be served first. After each new person joins, they move to the front of the line so they get served before others, mimicking a stack's top.
Queue: front -> [1, 2, 3] ← back Stack: top -> 3 -> 2 -> 1 -> null
