Topic: Stack Problem / Level: intermediate

Problem: Create a function to check if an array can be sorted by a series of stack operations.

Run the code to see the output here...