The problem, in one line. Build a word collection where you can add a word and search for a word, and a dot in the search pattern stands for any one letter. LeetCode 211.
The tell. Words stored and searched one by one, plus a wildcard that can sit anywhere. A hash set cannot answer “some letter here”, but a trie can try every road out of a stop.