Topic: Queue Problem / Level: advanced

Problem: Write a program to check if a sequence of numbers can represent a valid queue sequence.

Run the code to see the output here...