Intel Corporation interview question

Explain What a Capacitor Does?