Wipro Interview Question

Implementing stacks using queues