BNY Interview Question

LC 1344 and LRU cache