In an Excel-like structure, columns are labeled as "A" = 1, "B" = 2, ..., "Z" = 26, "AA" = 27, "AB" = 28 and so on. Write a program to calculate the numerical value of any given column name. For example, "A" → 1, "Z" → 26, "AA" → 27, "BA" → 53.
for(char c : columnName.length()){ String res = res*26 + (c - 'A' + 1); }
String s = "ABC" String s2 = new String("ABC") String s3 = "ABC"; Sysout(s = s2); Sysout(s=s3);

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?