Build a component that simulates a simple LRU (Least Recently Used) Cache and displays the cache contents after each operation.
HardProblem Statement
Build a component that simulates a simple LRU (Least Recently Used) Cache and displays the cache contents after each operation.
Sample Input
[1, 2, 3, 4, 2, 5]
Sample Output
Cache Contents: [3, 5, 2]
Limits
Time: 2s · Memory: 256 MB