Amazon Interview Question

Given an array return the most frequent number