I was looking at leetcode and found this problem. I got nostalia'd hard since I actually started out writing VBA for Excel, and I know there has to be this algorithm somewhere in the Excel code.
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB