Pregunta de entrevista de Tech Mahindra

Q: How to find second largest element in an array?