Topic: Queue Problem / Level: advanced

Problem: Write a program to track the last k elements added to a queue.

Run the code to see the output here...