Pregunta de entrevista de Nearform

String manipulation coding question. Know your strings, loops, splits and joins.