Zoho Interview Question

Second maximum frequency element without using collections