Arista Networks Interview Question

What is a capacitor? How does it work?