Intertek interview question

What is the difference between a capacitor and inductor