Microsoft Interview Question

String manipulation Q