Dell Technologies Interview Question

How would you iterate over a string if you do not know its length.