Javits Center interview question

How does a switch work?