Emergent interview question

Q: simple algorithm for string length