Domanda di colloquio di Sears

Given an array. Find the frequency of elements in array.