Pergunta de entrevista da empresa Hexaware Technologies

Finding the 2nd largest element of array