Melasma is a skin condition that occurs due to exposure to sun. It is generally present on the face in…