Step 1: Guess anything
Step 2: Flip all the non green cells.
Step 2: Flip all the non green cells.
guessing 00000 or 11111 removes that third state and leaves you with simple substitution of wrong cells, which leads to an optimal 2 step strategy.
but obviously the shortest strategy is just guessing it right on the first try :D lol
Right digit at the wrong place = wrong digit = you should flip it.
This puzzle won't take more than 2 guesses no matter what you input the first time.