Question d’entretien chez Spotnana

Question related to priority queue and DP