GCD on directed graph

Problem Name:
GCD on directed graph
Site:HackerEarth
Links:
Tags:
Problem setters: