if (first < second) {
    while (cd <= first) {
      cd += 1;
      if ((first % cd === 0) && (second % cd === 0)) {
        divisor = cd;