When you first encounter the puzzle it's in the configuration
Off On Off
On Off On
Off On Off
if you just click on the "On" ones it will solve the puzzle. If you've already changed it, then I'm not sure what the solution might be. It depends on the configuration.