Question d’entretien chez Swiggy

Sort the array, print 2nd largest number in array