PureCode Software interview question

How do you ensure security in a MERN stack application?