I'm sure there is a progression in which you just need to win 2 consecutive bets to recover all losses.
But winning just 2 of your last 3 steps and recover all your losses seems strange.
You can take a look here Best Roulette System List
, maybe it is a variant of one of those progressions.
Anyway one can create a progression given specific requirements.
Say if you want 2 consecutive wins to recover your past losses + 1 unit one can create such a progression. This can be done for whatever requirements.
In the specific example you gave for example, in order to recover everything with 2 wins in 3 spins, then there are basically 2 cases in order to recover your past spins:
W L W or WW
(L W W is a special case of W W)
So let's say we bet X
Then after a win next bet is
Total LOSS + 1
If we win we recover our losses +1 unit
If we lose then we bet again
Total LOSS (so far) + 1
So the only question is what the X is.
Does this sounds familiar? Because it is the only way to recover your Losses in 2 wins within 3 spins.