Pergunta de entrevista da empresa Zoho

Second maximum frequency element without using collections