LRU Cache
hardImplement an LRU Cache with O(1) get and put using a doubly linked list and hash map
LRU Cache
Doubly linked list orders by recency; hash map gives O(1) lookup — together they make O(1) LRU
Capacity = 2. Doubly linked list with head/tail sentinels. Hash map is empty.