Pergunta de entrevista da empresa Tata Consultancy Services

Find the second max in an array.