IDT Interview Question

What are some ways to write more secure code?