Infosys interview question

The data structure question about stack, queue