Meta interview question

Screening: Top K frequent elements