result to build the base-9 representation.n is greater than 0:
a. Calculate n modulo 9 to get the last digit of the base-9 representation.
b. Prepend the digit to result.
c. Divide n by 9 and update n to the quotient.result to an integer and return it.