Function to do the range query in the segment tree
def query ( index : int , beg : int , end : int , l : int , r : int ) -> Node : NEW_LINE INDENT result = Node ( ) NEW_LINE result . value = result . max_set_bits = - 1 NEW_LINE DEDENT