Melanin is a chemical substance which possesses properties that we…