Hexaware Technologies Interview Question

Finding the 2nd largest element of array