GoDaddy interview question

LRU Cache in JS on hacker rank