Google interview question

Top N items in a running stream