Microsoft interview question

Write code for lru cache