Question d’entretien chez Amazon

How would you implement a priority queue. Code.