I am confused about function of Capacitor in AC & Capacitor in DC circuit.