Capital One interview question

Build a stack using a queue.