Did you know that you can actually access elements from the back of a queue in SystemVerilog?
Check out the code below to learn how:
After running the simulation the result is: