solution to Box LRU Cache challenge