
    Write a function that examines a transaction's security flags between positions l and r to verify if all security checks in that range have passed (represented by unset bits). The security flags are encoded in a binary pattern n, where each bit position corresponds to a specific fraud detection rule, with 0 indicating a passed check and 1 indicating a failed check.
    

    
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Write a function that examines a transaction's security flags between positions l and r to verify if all security checks in that range have passed (represented by unset bits). The security flags are encoded in a binary pattern n, where each bit position corresponds to a specific fraud detection rule, with 0 indicating a passed check and 1 indicating a failed check.
    

    """
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Write a function that examines a transaction's security flags between positions l and r to verify if all security checks in that range have passed (represented by unset bits). The security flags are encoded in a binary pattern n, where each bit position corresponds to a specific fraud detection rule, with 0 indicating a passed check and 1 indicating a failed check.
    

    """
    num = (1 << r) - 1 ^ (1 << l - 1) - 1
    new_num = n & num
    if new_num == 0:
        return True
    return False