Pregunta de entrevista de Texas Instruments

Substring question Length of an array