Mental Model
A queue is a line where the first person to get in is the first to get out. It works on the First In, First Out (FIFO) rule.
Analogy: Imagine waiting in line at a ticket counter. The first person who joins the line is the first one served and leaves the line first.
front -> [1] -> [2] -> [3] -> rear ↑front pointer ↑rear pointer
