Topic: Queue Problem / Level: advanced

Problem: Implement a function that calculates the minimum distance between two elements in a queue.

Run the code to see the output here...