Virtusa Interview Question

How to prevent SQL injection attack