TheRedPin interview question

How do you prevent a SQL injection?