You are given a dictionary pages that maps a URL string to the list of URLs that appear as links on that page, and a seed URL.
Starting at the seed, discover every page reachable by following links that belongs to the SAME domain as the seed. Return the list of visited URLs in the order they are first reached.
Exploration order rules (the result must be deterministic):
pages, treat it as a page with no outgoing links.A URL's domain is the host portion: the substring between :// and the next /. If there is no ://, the host is everything up to the first /.
Return the list of visited URLs.