Pergunta de entrevista da empresa Cognizant

1.2nd max and 3rd max in the table