Rocket Interview Question

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