Topic: Queue Problem / Level: intermediate

Problem: Write a program to implement a queue that retrieves both the maximum and minimum elements efficiently.

Run the code to see the output here...