Melatonin is a natural hormone that is produced by the pineal gland in the brain and then released into the…