Domanda di colloquio di Capital One

Implement a stack with only a queue and explain the time complexities?