Ben was demonstrating a nested for loop in this exercise and was beginning to say it wasn’t really necessary as you could define and initialize Index to 0 and use only one for loop with Comparison iterating through the FString Word. I tried it and it works great. See the code below! I think this is really neat and tidy as opposed to the nested for loops version.
int32 Index{ 0 };
for (int32 Comparison{ Index + 1 }; Comparison < Word.Len(); Comparison++)
{
if (Word[Index] == Word[Comparison])
{
return false;
}
Index++;
}