Mental Model
A deque lets you add or remove items from both ends easily. It's like a line where you can join or leave from front or back.
Analogy: Imagine a train with doors at both front and back. Passengers can get on or off from either door, making it flexible and fast.
front -> [ ] -> [ ] -> [ ] -> back βfront pointer βback pointer
