I believe in this section the code has a slight bug in it.
You need to import
SandboxEndpoints
from
@yext/search-headless-react
or your code will error. Hope this helps someone else!
update
import {
provideHeadless,
Environment,
SearchHeadlessProvider,
SandboxEndpoints, // ADD THIS LINE
} from "@yext/search-headless-react";
Also I believe the quiz may have an issue in question one as it asks about the location order the search returns, but that may be updating over time so the question may have become stale.