Question d’entretien chez Google

Given an array find the second most frequent element