Typescript Loop Through String Array Length In C