function getGreatestCommonDividor(a, b) {
  if (b === 0) {
    return a;
  }

  return getGreatestCommonDividor(b, a % b);
}
Get the greatest common dividor

@param {number} a one number
@param {number} b the other number