Goldman Sachs interview question

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