Datametica interview question

How can a stack be used as a queue?