Garmin interview question

Create a function that can count the number of characters in a string (without using the length function).