Siemens Interview Question

To implement stack operations using queue.