Pregunta de entrevista de Zoho

Second maximum frequency element without using collections