TikTok Interview Question

Leetcode: LRU cache, top frequency k elements