Google interview question

Given an array find the second most frequent element