Dynalectric interview question

What is the function if a capacitor?