Northrop Grumman interview question

How does a capacitor work?