NIKE interview question

Coding Assessment: A string manipulation problem.