Pregunta de entrevista de Meta

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