Mental Model
A queue is like a line where the first person in is the first person out. We use an array to hold the people in order.
Analogy: Imagine a line at a ticket counter. People join at the back and leave from the front, just like a queue using an array where we add at the end and remove from the front.
Front -> [ ] [ ] [ ] [ ] [ ] ← Rear Indexes: 0 1 2 3 4 Initially empty queue with front and rear pointers.
