Sensata Technologies interview question

How does a capacitor work?