Infosys Interview Question

Implement a stack using queues.