Factorial Interview Question

How do you ensure your code performs as expected? How do you handle conflicts with your teammates?