Excel Sheet Column Title
Math
easy
Score: 10
Given an integer columnNumber, return its corresponding column title as it appears in an Excel sheet.
For example:
A -> 1
B -> 2
C -> 3
-----------
Z -> 26
AA -> 27
AB -> 28
Input Format
The only input line consists of a single Integer.
Output Format
The only input line should consist of a single string containing the corresponding Column Title.
Example 1:
Input:
1
Output:
A
Example 2:
Input:
28
Output:
AB
Example 3:
Input:
701
Output:
ZY
Example 4:
Input:
2147483647
Output:
FXSHRXW
Constraints:
- 1 <= columnNumber <= 2<sup>31</sup> - 1