Let's consider a practical example. Imagine we have an empty LRU cache with a capacity of 2 slots. Now, we will carry out the following operations: Insert (1,1): the cache now contains {1=1} Insert (2,2): the cache is now {1=1, 2=2} Get (1): returns 1; the cache updates to {2=2, 1=1} Insert (3,3): the least recently used key was 2, which gets evicted; the cache is now {1=1, 3=3} Get (2): returns -1 (not found) Insert (4,4): the least recently used key was 1, which gets evicted; the cache updates to {3=3, 4=4} Get (1): returns -1 (not found) This series of operations demonstrates how the LRU cache functions—items that are most recently used are retained, while those that are least recently used are removed when the cache reaches its capacity.