Pergunta de entrevista da empresa EPAM Systems

Find the k-th maximum element in an array.