This is a full wave rectifier. It converts an Alternate Current to a One-way current or Direct Current by the diodes, then the current is made smoother with the help of the Capacitor and Resistor. An extra resistance in series with the LED is provided to prevent LED from burning out.