NIKE Interview Question

Coding Assessment: A string manipulation problem.