Infosys Interview Question

implement the stack using queue?