What does the acronym FIFO mean?
First-in-first-out: The first thing “enqueue”d onto the queue is the first thing that be “dequeue”d out.
What methods are available on a Queue data structure?
What must you do to access the value at an arbitrary point in a queue (not just the “front”)?
Keep “dequeue”ing the queue and store each “dequeue”d value in a variable until you reach the arbitrary point. Then you can “enqueue” the “dequeue”d values back onto the queue.