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 items and keep track of where the front and back of the line are.
Analogy: Imagine a line at a ticket counter. People join at the end and leave from the front. The array is the floor with spots, and two markers show where the line starts and ends.
front -> [ ] [ ] [ ] [ ] [ ] ← rear indexes 0 1 2 3 4
