Pergunta de entrevista da empresa Tech Mahindra

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