ADP Interview Question

store frequency of elements in an array