Amazon Interview Question

Implement a least recently used cache, invert a binary tree