On step 6, the numbers of loops is indicated, 8 in this case, but the value of the "reversenames" vairable is not indicated, although it is known after this instruction execution ?
Impossible to tell with so little information.
Could you explain more in detail. You know what you have entered in playground, we don't !
What is step 6 ?
What is reverseNames ?
Please show code eventually and copy what you get as messages.
Note: this should be posted in the playground section.