Xoriant interview question

Write a program to implement dequeue