Lutron Electronics interview question

How does a dimmer switch work?