- You are given two stacks: A and B.
- Stack A contains a random set of numbers.
- You are also able to do the following:
Pop from any one stack and push to the other.
Pop from any stack.
If you pop from a stack, the number will output out to the screen. - Output the numbers in ascending order.