Autodesk Interview Question

How would you implement a redo/undo operation?