Passcode that resets when not done in a specific order.

Does anyone know how i can make a passcode that resets when - 1 digit it incorrect, second is incorrect, so on so on

And the player must not press ok to see if the passwords correct. Fortnite automatically checks that for you