Below, you can find another hint for the Challenge.
You should only get here after reading, digesting, and applying the .
The value of N should be equal to the length of fragment_1, which we already decided to be var S = (including the trailing space).
If you are lazy, then you can let the machine do the counting, by pasting the string (including the trailing space) into the input area:
and running the following program:
This outputs ():
Now that N has been determined, fragment_2 is also completely known:
and thus the value for string S is known:
Can you put the pieces together to obtain a first solution?
Try your program in the machine, and see if you can extend it to a complete solution. (Do remember that all statements on a single line is not acceptable as a final solution, because this violates reasonable coding conventions. However, do ignore this requirement for the moment.)
It is your turn ...
If you tried this hint, or do not see how it helps, then you are ready for the .