Mphasis Interview Question

Return the item with the highest frequency in the given array.