Meta interview question

One leetcode medium issue, two hard lc, one is LRU.