Microsoft Interview Question

String manipulation question Easy level question. Signed the non-disclosure so can't be specific