IBM interview question

Question related to Arrays and Strings.