BlackRock interview question

Array Question about change and strings