Given a string columnTitle representing an Excel column label (e.g., "A"..."Z", "AA", "AB"), return its corresponding 1-based column number, treating it like a base-26 number where A=1, B=2, ..., Z=26.
Step 1: I took the string and put a for loop
Step 2: In the loop, I took each char from the string and added its ASCII value
Step 3: I calculated total and printed the result

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?