interface AI interview question

Gave 2 days time to write code for web crawler