Reddit interview question

What is XSS and how do you mitigate it?