Apple interview question

How to implement a least recently used cache in python