Phenom interview question

top one frequesnt element from a given array