Question d’entretien chez Goldman Sachs

write a program that returns the second largest element in an array (as efficient as possible)