ServiceTitan interview question

Explain SQL Injection, CSRF, how to mitigate SQLi, XSRF