Intuit Interview Question

Standard question around string manipulation