Mental Model
A stack works like a pile where the last item added is the first removed. A queue works like a line where the first item added is the first removed. We can use a queue to mimic a stack by rearranging the order after each addition.
Analogy: Imagine a line of people (queue) but you want to always serve the last person who joined first (stack). After each new person joins, you make them go to the front of the line by moving everyone else behind them.
Queue: front -> [1] -> [2] -> [3] -> rear Stack: top -> [3] -> [2] -> [1] -> bottom
