I have a queue, it receives elements, how to make it so that the last person who entered the queue is the first to go to the processor (the last person who entered is transferred to the processor), and vice versa, the first entered the queue, the first served (the first to entered, the first is passed to the processor)