Question d’entretien chez Adobe

Priority Queue question(Medium Level) difficulty