Amazon Interview Question

How we can implement a queue with one pointer?