HackerEarth Bob And GCD problem solution - TheCScience