Porter interview question

Questions on string manipulation and arrays