Topic: Queue Problem / Level: beginner

Problem: Write a program to check if a queue is valid after a sequence of enqueue and dequeue operations.

Run the code to see the output here...