Topic: Queue Problem / Level: intermediate

Problem: Write a program to find the total number of distinct elements in a queue after several operations.

Run the code to see the output here...