def check_valid_new(policy_and_pw: "list") -> bool:
    """Check whether new password policy is met or not."""
    pos0, pos1, char, pw = policy_and_pw
    if (pw[int(pos0) - 1] == char) + (pw[int(pos1) - 1] == char) == 1:
        return True
    else:
        return False