Microsoft Interview Question

String and array manipulation questions