IDT interview question

What are some ways to write more secure code?