Highest frequency

wat if there is more than one element with highest frequency.
how to print them

Hey Ideally you should take first one to appear in array.
It is not clearly mentioned @sanjeetboora, Could you help in this?