Virtusa interview question

How to prevent SQL injection attack