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 line and two markers to track the front and back.
Analogy: Imagine a queue at a ticket counter. People join at the end and leave from the front. The array is the waiting area, front is the person served next, rear is the last person who joined.
front -> [ ] [ ] [ ] [ ] [ ] ← rear indexes 0 1 2 3 4 Initially: front = -1, rear = -1, array empty
