23: Excel sheet column number
Given Excel
column name. Convert this name to the corresponding number
A column name can have A-Z
characters
Conversion rules:
A = 1
B = 2
C = 3
D = 4
...
Z = 26
AA = 27
etc
Example 1
Input: A
Output: 1
Example 2
Input: ABC
Output: 731