slice interview question

Sliding window maximum LRU cache implementation BINARY SEARCH real world use cases