Pregunta de entrevista de Autodesk

How would you implement a redo/undo operation?