Typescript Loop Over String Array Length In C