docs: public int compareTo(Rational other)
      {
          if (denominator == other.getDenominator())
          {
              return ((Long) numerator).compareTo(other.getNumerator());
          }
          else
          {
              Long adjustedNumerator = numerator * other.getDenominator();
              Long otherAdjustedNumerator = other.getNumerator() * denominator;
              return adjustedNumerator.compareTo(otherAdjustedNumerator);
          }
      }