Vodafone Interview Question

How can you prevent defects from being introduced into a project?