HackerOne Interview Question

XSS how does it work, some bypasses.