Pregunta de entrevista de QA InfoTech

code on ide most optimized apporach to find second maximum in an array