IBM interview question

String, array and data structure questions