Topic: Stack Problem / Level: intermediate

Problem: Write a program to implement the LRU (Least Recently Used) cache using a stack.

Run the code to see the output here...