Siemens interview question

To implement stack operations using queue.