Topic: Queue Problem / Level: advanced

Problem: Implement a function that tracks the history of enqueue and dequeue operations for undo functionality.

Run the code to see the output here...