code: def _ends_with_vowel(self, letter_group: str) -> bool:
          
          if len(letter_group) == 0:
              return False
          return self._contains_vowels(letter_group[-1])
docs: Check if a string ends with a vowel.