input: Write a python function to calculate the greatest common divisor (GCD) of two numbers.
  assert gcd(48, 18) == 6
  assert gcd(101, 10) == 1
  assert gcd(56, 98) == 14
output: def gcd(a, b):
      while b:
          a, b = b, a % b
      return a