Find most frequent element in the array

Find most frequent element in the array - Coding Problem | K5kC