Pregunta de entrevista de Arista Networks

What is a capacitor? How does it work?