Topic: Stack Problem / Level: intermediate

Problem: Write a program to check whether a sequence of stack operations can generate a given output sequence.

Run the code to see the output here...