Zoloft is a brand name for the antidepressant medication sertraline. It belongs to a class of drugs called selective serotonin…