GE HealthCare Interview Question

How does undo and redo work in a laptop