ZS Associates Interview Question

Count the frequency of a number occurring in the given array