reverse a queue and queue implementation using two stacks