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 back and remove from the front. To make a stack using a queue, we reorder the queue so the last added item is always at the front.
Analogy: Imagine a line of people where the newest person always moves to the front of the line so they get served first, just like a stack where the last item added is the first to be removed.
Queue: front -> [1] -> 2 -> 3 -> back Stack: top -> [3] -> 2 -> 1 -> bottom
