Question d’entretien chez TCS

find the second largest element in array