Recursive concatenation

I think I understand the solution. Thank you so much for the great explanation, it is very much appreciated!