SAP Interview Question

Implement undo and redo.