Pregunta de entrevista de Tata Consultancy Services

Find the second max in an array.