Swiggy interview question

Sort the array, print 2nd largest number in array