Mental Model
A queue is like a line where the first person in is the first person out. We use an array to keep track of this line.
Analogy: Imagine a queue at a ticket counter. People join at the end and leave from the front, just like adding to the end of an array and removing from the front.
front -> [ ] [ ] [ ] [ ] [ ] ← rear Initially empty queue with front and rear pointers.
