If segment of this node is a part of given range , then return the node of the segment
if ( beg >= l and end <= r ) : NEW_LINE INDENT return tree [ index ] NEW_LINE DEDENT mid = ( beg + end ) // 2 NEW_LINE