Question d’entretien chez Meta

They asked a leetcode Top K Frequent Elements