Microsoft Interview Question

Programming question on strings