There are three switches A, B and C which can be in ON/OFF position. Their settings change as per the
following rules:
- If A is the only switch as ON, change B to ON.
- If A and B are only switches as ON, change C to ON.
- If all three switches are ON, change C to OFF.
- For all other situations, all switches in ON are changed to OFF and all switches in OFF are changed
to ON