Sears interview question

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