This is an exercise in data structures dealing with implementations and applications of stacks and queues.
We begin by implementing a stack, followed by implementing a queue directly and then by using two stacks. Finally, we use a stack to check if a string of mixed brackets is balanced.
The exercises come from here.