def _wildcards(word, symbol="_"):
    """Return list of wildcards associated with word."""
    res = []
    for i in range(len(word)):
        res.append(word[:i] + symbol + word[i + 1 :])  # O(L) space
    return res