Amazon interview question

Implement LRU cache and explain your thinking around it