Topic: Queue Problem / Level: beginner

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

Run the code to see the output here...