Rocket interview question

How do you protect code against vulenrabilty (SQL injection)?