PureCode Software Interview Question

How do you ensure security in a MERN stack application?