Confluent Interview Question

Solve modified version of LRU cache