imagine you are in the hiring process of a company whose
main business is analyzing the information that appears
in the web
a simple test consists in writing a program for
maintaining up to date a set of trending topics
you will be hired depending on the efficiency of your solution
they provide you with a file containing the text
corresponding to a highly active blog
the text is organized daily and you have to provide the
sorted list of the n most frequent words during last week
when asked
each input file contains one test case the text corresponding
to a day is delimited by tag text
the query of top n words can appear between texts corresponding
to two different days
blah blah blah blah blah blah blah blah blah
please please please