Power factor of the following circuit will be unity

Power factor of the following circuit will be unity

A. inductance
B. capacitance
C. resistance
D. both A. and B.