Pregunta de entrevista de Epic

Basic string manipulation, and big-O complexity.