Thoughtworks Interview Question

Solve HTTP Hunt Game