Texas Instruments interview question

Substring question Length of an array