When chlorine Is passed into water and the resulting solution exposed to sunlight, the product…