Pergunta de entrevista da empresa Autodesk

How would you implement a redo/undo operation?