Determine Reachability Between Cities

Company: bloomberg pune_7thjuly

Difficulty: medium