hr 101jun14 sherlock-and-gcd

https://www.hackerrank.com/contests/101jun14/challenges/sherlock-and-gcd