Emergent Interview Question

Q: simple algorithm for string length