Srikant is designing a customer support software. He is creating a queue-like structure wherein incoming calls will be added to a waiting list. Once a customer support executive is free, the call will be picked up and answered.
Help him design a waiting list using deque. The callers should be picked up in the First In First Out order. i.e. callers who called first will be answered first.