Microsoft interview question

String and array manipulation questions