Mental Model
A queue is like a line where the first person in is the first person out. We use an array to hold items and keep track of where the line starts and ends.
Analogy: Imagine a line of people waiting to buy tickets. The first person to get in line is the first to be served and leave. The array holds the people, and two markers show who is first and last in line.
front -> [ ] [ ] [ ] [ ] [ ] ← rear indexes 0 1 2 3 4 Initially: front = -1, rear = -1, array empty
