Amazon interview question

Implement stack using queue algo.