Excel Sheet Column Title
Solution Code
# Get the last character and append it at the end of string.
ans += chr((columnNumber % 26 + ord("A")))Time Complexity
O(log N)
Space Complexity
O(1)
# Get the last character and append it at the end of string.
ans += chr((columnNumber % 26 + ord("A")))