def new_compliance(pos_a, pos_b, char, password):
    """
    Count the characters of a password for compliance with the puzzle

    Args:
        pos_a: One of two positions the character must appear in
        pos_b: One of two positions the character must appear in
        char: The character
        password: The password

    Returns"
        test_result: Pass/fail bool of puzzle

    """
    test_result = 0
    if password[pos_a-1] is char or password[pos_b-1] is char:
        if password[pos_a-1] is not password[pos_b-1]:
            test_result = 1
    return test_result