Pregunta de entrevista de Hudson River Trading

One string manipulation question testing recursion