Pocket Gems interview question

top k frequent elements