Most frequent number in array

Finding the most frequent number in given array.