Logic Gates

Work out which switches send current through the gates to light every lamp in the fewest flips.

Oboe