Thoughtworks interview question

Solve HTTP Hunt Game