IBM interview question

they asked string and array questions