Pregunta de entrevista de Swiggy

Sort the array, print 2nd largest number in array