DAC and clean hydrogen production through electrolysis