Given a list of words and a character x, we need to return the indices of the words that contain that character.
I used a basic loop with enumerate() to track both the index and the word.
If the character x is found in the word (if x in word:), I store the index.