Pergunta de entrevista da empresa Amazon

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