Microsoft Interview Question

Some questions about string and array manipulation.