Pregunta de entrevista de Microsoft

How to implement undo and redo in computer