Nagarro interview question

SQL injection and how to prevent it