
    Given a user's interest profile represented as a binary number where each bit indicates whether they have selected a particular interest category, determine if the user has not selected any interests within a specific category group defined by positions l to r. For example, check if a user has completely opted out of all entertainment-related interests by verifying if all bits are unset (0) in the entertainment category section of their profile.
    

    
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Given a user's interest profile represented as a binary number where each bit indicates whether they have selected a particular interest category, determine if the user has not selected any interests within a specific category group defined by positions l to r. For example, check if a user has completely opted out of all entertainment-related interests by verifying if all bits are unset (0) in the entertainment category section of their profile.
    

    """
def all_Bits_Set_In_The_Given_Range(n, l, r):
    """
    Given a user's interest profile represented as a binary number where each bit indicates whether they have selected a particular interest category, determine if the user has not selected any interests within a specific category group defined by positions l to r. For example, check if a user has completely opted out of all entertainment-related interests by verifying if all bits are unset (0) in the entertainment category section of their profile.
    

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