Arista Networks interview question

What is a capacitor? How does it work?