Sensata Technologies Interview Question

How does a capacitor work?