Hexaware Technologies interview question

Finding the 2nd largest element of array