Uptime AI interview question

Implementation of LRU using javascript