Implement LRU cache with O(1) ops | Amazon Interview Question