Mental Model
A stack works like a pile where the last item added is the first to be removed. A queue works like a line where the first item added is the first to be removed. We can use a queue to act like a stack by carefully moving items around.
Analogy: Imagine a line of people (queue). To get the last person who joined to leave first (stack behavior), you ask everyone except the last to step aside and then let the last person leave. Then the others come back in line.
Queue: front -> [1] -> [2] -> [3] -> null Stack: top -> 3 -> 2 -> 1 -> null
