Pregunta de entrevista de Cognizant

1.2nd max and 3rd max in the table