Bloomberg interview question

Leetcode: lru cache, rotten oranges