Perennial System interview question

Find length of string without using inbuilt functions