Domanda di colloquio di Tata Consultancy Services

Find the second max in an array.