Infosys interview question

implement the stack using queue?