Pregunta de entrevista de Northrop Grumman

How does a capacitor work?