Here’s my attempt for this one.
bool FBullCowGame::IsLowercase(FString Word) const
{
// treat 0 letter words as lower case
if (Word.length() < 1) { return true; }
for (auto Letter : Word) // for all letters of the word
{
if (!islower(Letter) || Letter == ' ') { // if the letter is a space or upper case
// the word is not lower case
return false;
}
}
return true;
}