Amazon interview question

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