Infosys interview question

Implement stack using queue (dsa).