

Welcome to the Python screen for the Solutions Architect role at Capgemini FSSBU.
The question is on your right: Design an LRU Cache. Read through the requirements first.
Would you like to talk through your approach, or are you ready to start coding?
Implement an LRU cache with fixed capacity. Support get(key) and put(key, value) so that both run in O(1) average time, and evict the least recently used key when the cache is full.
1 <= capacity <= 30000 <= key <= 10^40 <= value <= 10^52 * 10^5 operations