Topic: Queue Problem / Level: intermediate

Problem: Write a program to find the maximum element in a queue after removing duplicates.

Run the code to see the output here...