Amazon Interview Question

design a least recently used cache Tree traversal