Question d’entretien chez Microsoft

code question find the kth largest number