Apple interview question

How would you explain what a capacitor does?