Amazon interview question

make stack to the queue