Techland Interview Question

How would you solve undo/redo functionality if it's coverage was not 100%?