def repeated_letter(word: str) -> dict:
    """
    Check if a word has repeated letters.

    Args:
        word (str): Word to check.

    Returns:
        dict: {
            'A':{1,2},
            'B':{0,3},
            etc.
        } # Dictionary of repeated letters and the indices where they are repeated.
    """
    repeats = {'letters':{}, 'indices':set({})}
    for i_a in range(len(word)):
        letter_a = word[i_a]
        for i_b in range(i_a+1, len(word)):
            letter_b = word[i_b]
            if letter_a == letter_b:
                if letter_a in repeats:
                    repeats['letters'][letter_a].add(i_b)
                    repeats['indices'].add(i_b)
                else:
                    repeats['letters'][letter_a] = set({i_a, i_b})
                    repeats['indices'].add(i_a)
                    repeats['indices'].add(i_b)
    return repeats