Meta interview question

Leetcode 347. Top K Frequent Elements