result
to store the column title.columnNumber
is greater than 0:
a. Subtract 1 from columnNumber
to adjust for the 1-based indexing of Excel columns.
b. Calculate remainder
as columnNumber % 26
.
c. Convert remainder
to the corresponding character in the alphabet and prepend it to result
.
d. Update columnNumber
to columnNumber / 26
(integer division).result
string, which contains the column title in the correct order.