Pregunta de entrevista de Pentaloop

How to find second largest element in an array?