Flipkart Interview Question

Given an array, find the frequency of elements and solve basic problems related to strings and arrays.