challenges/anagrams: Remove useless check of word in the set

We can safely add the word to the set because we know that the set will
hold only one copy of each word.