Question d’entretien chez Oracle

based on priority queue, dp