LeetCode - LRU Cache - refactor