This question evaluates a candidate's competency in implementing robust HTTP-based crawling and traversal logic, including response parsing, retry and error handling, and termination detection.
You are given a starting HTTP URL. Implement a function that repeatedly calls URLs returned by previous responses until you reach a response that indicates success.
Behavior:
"congrats"
).
"congrats"
.
Requirements:
"congrats"
response (you do NOT need to return the path of URLs taken).
Clarify any assumptions you need (e.g., max retries, backoff strategy, cycle detection, concurrency).