Frage im Vorstellungsgespräch bei Tata Consultancy Services

Code to find the second largest element in an array