Here is another brain teaser from I.Q. Challenge.
Three switches outside a windowless room are connected to three lightbulbs inside the room. How can you determine which switch is connected to each bulb, if you may open the door and enter the room only once?
The answer is in the comments.