Amazon interview question

Given an array return the most frequent number