Micron Technology interview question

What is a capacitor and how does it work?