How can Young Goodman Brown be viewed as a reflection of Hawthorne’s own life?

How can Young Goodman Brown be viewed as a reflection of Hawthorne’s own life?

Have attached all documentation needed to write this short essay. If there are any questions,reach out!