AIS Interview Question

coding question about strings and array