Question d’entretien chez Amazon

use priority queue to find the kth minimum element