- You are given two stacks: A and B.
- Stack A contains a random set of numbers.
-
You may perform these operations:
Pop an element from one stack and push it onto the other.
Pop an element from either stack.
When you pop, the value is shown in the observations box. - Arrange the output in ascending order.