Question d’entretien chez Amazon

Find second largest number of the given integer array? What about finding Kth?