Deloitte interview question

Array and strings - some questions on series