LRUCache Solution in Python