Let\'s say there are three elements in a non-sorted array all of which appear more than one-fourth times of the total number of elements.
What is the most efficient
create a histogram of the entries, sort it, and take the three largest entries.