The requirement for the alert is mentioned in the description for Task 2:
Task 2: XSS Pentest You are now hired as a penetration tester! Either find a working payload to automatically execute alert(document.domain) when the page is opened […]