I am trying to figure out how to reconfigure a line using each x position, so that an example input line of "ABCDEFGHI" and x equal to 4 will give DHCIFEGBA. Here is how I understood it:
The first letter is simple: symbol 4. [A, B, C, D ]
The second letter is also simple: it is symbol 8. [E, F, G, H ]
The third letter is basically simple: it is symbol 3. This is because I obsessed as I had hoped, so I used the I of, A, Bed and, the C .
Fourth letter - this is where things get complicated: it is a symbol 9. As the D and H were gone, they are not used in the analysis, resulting in E, the F, the G, I of .
Letter # 5 follows the same pattern, skipping C and D: A, B, E, F
Letter # 6 has gaps and wrapper: G, A, B, E .
№7 letter again wraps: the G, A, Bed and, the G .
Letter No. 8 also wraps up (technically twice, since the "cursor" was beyond G to: A, B, A, B
Letter # 9 is our remainder: A, A, A, A
Obviously, it will be necessary to loop until the length of the output line matches the length of the input line - this is all a mess in the middle (mainly gaps and loops) that I cannot figure out for my life.
Any help or guidance appreciated.