Queue represents a
first-in, first out collection of object. It is used when you need a first-in, first-out access of items. When you add an item in the list, it is called
enqueue, and when you remove an item, it is called
deque.
Queueis used to check whether an element is in the Queue