Abrigo Interview Question

string manipulation question