Netflix·Software Engineer·Technical Phone Screen
- Design and implement a command executor that supports execute and undo operations, using a Command interface so that concrete command types can plug in without the executor knowing their internals.
- How would you extend this system to support redo, multi-step undo, batching commands into a single transaction, and persisting or replaying the command log?
“I knew the stack-based undo pattern going in, so the core implementation wasn't the hard part.”