Topic: Queue Problem / Level: advanced

Problem: Write a program to determine if a given sequence of numbers can represent a valid sequence of enqueue and dequeue operations.

Run the code to see the output here...