XYZ interview question

find 2nd largest element in array