IBM Interview Question

they asked string and array questions