HubSpot interview question

Leetcode: Top K most frequent items in a list