Autodesk interview question

How would you implement a redo/undo operation?