Find Reachability

Problem Name:
Find Reachability
Site:HackerEarth
Links:
Tags:
Problem setters: