Probably not most efficient as switch statement does not allow checking a range of values. Only exact values. You'd need 26 cases for the letters and 10 cases for the numbers.

You can use 'if'...