ExpertVoice interview question

It was an easy question regarding top k elements.