DoorDash interview question

There were 2 coding questions on priority queues and dequeues