IBM interview question

The question can be based on string and array