Capital One Interview Question

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