DJI Interview Question

Write a code for LRU.