Implement a stack using only queues.