Originally posted by: andrey
Here is one more which a friend of mine has been asked at the MS interview:
"You have two room and a hallway between them. In one room you have 2 switches, and in another one you have 3 light bulbs. You can go through the hallway only once, from room with switches to the room with light bulbs. You can's see one room from another. Your goal is to determine which switch control which light bulb."
easy: turn on one switch, wait 2-3 minutes, turn on another switch... go to the other room, the lamp which is hotter is the first switch, second on lamp is the second switch
edit: lan evo beat me to it