Topic: Queue Problem / Level: advanced

Problem: Implement a function that tracks the last k elements added to a queue and their frequencies.

Run the code to see the output here...