Domanda di colloquio di Amazon

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