DJI interview question

Write a code for LRU.