Nagarro Interview Question

SQL injection and how to prevent it