Implement Caches, Undo, and Traversal | Netflix Coding Question