There is a lightbulb inside a closet. The door is closed, and you cannot see if the light is on or off through the door. Outside the closet are three light switches — one controls the bulb. You can flip the switches however you want, but once you open the door, you can no longer touch the switches. How do you figure out which switch controls the light?