Topic: Queue Problem / Level: advanced

Problem: Write a program to track the maximum and minimum elements in a queue in O(1) time.

Run the code to see the output here...