Amazon interview question

Implement a LRU Cache. Code in full.