This question already has an answer here:
There is a room with a single light bulb in it. Outside the room there are three light switches. You cannot see inside the room at all. Only one light switch turns on the light bulb. You may only enter the room once to find out which switch turns it on. The goal is to figure out which light switch turns on the light.