Northrop Grumman Interview Question

How does a capacitor work?