Confluent interview question

Solve modified version of LRU cache