How can i print primary queue?

how can i print primary queue as a stack by a display function??

Use two stacks that reverse each other So that when popping you get a FIFO structure like a queue