result.n:
a. Calculate positionsLeft as n - position - 1.
b. If k is greater than positionsLeft * 26, reserve 26 for each of the remaining positions.
c. Calculate the value to add at the current position as k - (positionsLeft * 26).
d. Convert the numeric value to a character and append it to result.
e. Update k by subtracting the numeric value added at the current position.
f. If k is not greater than positionsLeft * 26, append 'a' to result and subtract 1 from k.result string.