Ubisoft interview question

Write a simplified example of a Command Pattern