from typing import List


def is_valid_rule_two(character_indices_policy: List[int], character: str, password: str) -> bool:
    """
    Return True if a password is abides to its asscoiated policy else return False
    The policy is represented as follows:
        '[1-3] a' --> the character 'a' should occur either as the first or the third character not both

    DOCTEST
    >>> is_valid_rule_two(character_indices_policy=[6, 10], character='p', password='ctpppjmdpppppp')
    True
    >>> is_valid_rule_two(character_indices_policy=[6, 10], character='p', password='ctppppmdpppppppp')
    False
    >>> is_valid_rule_two(character_indices_policy=[6, 10], character='p', password='ctpppmdpplppppp')
    False
    """
    character_indices = [i + 1 for i, c in enumerate(password) if c == character]
    if len(set(character_indices_policy).intersection(set(character_indices))) == 1:
        return True
    return False