Domanda di colloquio di Amazon

How we can implement a queue with one pointer?