I've been using lots of commercial and custom software since 1978 and I have never seen what the OP has requested. Closest I can think of is Adobe which tracks history and then lets you do multiple undo operations, in order, to get back to a selected point in the history.

Given how uncommon and complex the requested undo is I would give this request a -1.