Given a list of strings, sort the strings by frequency. Print the top three most frequent strings.
Sigiloso
Frequency count is trivial. For sorting, I offered to sort the resulting list, maintain a sorted linkedlist or maintain a treeset with a comparator. All these solutions were deemed inefficient.