This is my IsIsogram function implementation. I used nested while loops here. Just put down in codes whatever that came through my mind. I have no idea which one is better: for or while loop, just went for the latter.
bool UBullCowCartridge::IsIsogram(FString Word)
{
int32 counter=1;
int32 counter2=0;
while(counter < Word.Len())
{
while(counter2 < counter)
{
if(Word[counter] == Word[counter2])
{
return false;
}
++counter2;
}
counter2 = 0; //Reset counter2
++counter; //Increment counter
}
return true;
}
Output: