Tagged Command Undo
Examples
Example 1:
Input: ["CommandLog","execute","execute","execute","undo","undo","undo"]
[[],["A",["x"]],["B",["y"]],["C",["x","y"]],[null],["x"],["y"]]
Output: [null,null,null,null,"C","A","B"]
Explanation:
Example 2:
Input: ["CommandLog","execute","execute","execute","undo","undo","undo"]
[[],["alpha",[]],["beta",["prod"]],["gamma",[]],["prod"],[null],[null]]
Output: [null,null,null,null,"beta","gamma","alpha"]