Meta Interview Question

Screening: Top K frequent elements