Google Interview Question

Given an array find the second most frequent element