Topic: Queue Problem / Level: advanced

Problem: Implement a priority queue that supports both min-heap and max-heap functionalities.

Run the code to see the output here...