Apple Interview Question

C++ questions about string manipulation