Sears Interview Question

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