Fast Enterprises interview question

Write pseudocode for a function that does "excel" column naming. (A...Z ->AA...)