TopK

2nd question of this: http://www.geeksforgeeks.org/amazon-interview-experience-set-152/