Problem description :
- Queue organizes data into the sequential order. It similar to the a queue of people waiting to get a bus ticket. It's a first come first serve model.
Queue data structure supports two basic operations : enqueue and dequeue as shown below.
- It is similar to linked list. Linked list has a head attribute whereas Queue maintains first and last attributes.