Cisco Interview Question

How does a capacitor work?