gcd task solved