Turn on the first two switches. Leave them on for five minutes. After five minutes, turn off the second switch, leaving one switch on. Now go through the door. The light that is still on is connected to the first switch. Whichever of the other two bulbs is warm to the touch is connected to the second switch. The bulb that is cold is connected to the switch that was never turned on.