IBM interview question

About basic code programming related to array and strings