Pregunta de entrevista de TEKsystems

How would you implement an undo/redo in a simple editor