Oracle interview question

Implement stack using queue and viceversa