Topic: Queue Problem / Level: advanced

Problem: Implement a function to track the history of enqueue and dequeue operations for an undo feature.

Run the code to see the output here...