A bulb in a staircase has two switches, one switch being at the ground floor and the other one at the first floor. The bulb can be turned ON and also can be turned OFF by anyone of the switches irrespective of the state of the other switch. The logic of switching of the bulb resembles
ABY000011101110
So, from the XOR gate truth table it is clear that the bulb can be turned ON and also can be turned OFF by one of the switches irrespective of the state of the other switch.