TikTok interview question

Leetcode: LRU cache, top frequency k elements