Recursive function to get the sum of values in the given range from the array . The following are parameters for this function : st -- > Pointer to segment tree node -- > Index of current node in segment tree ss & se -- > Starting and ending indexes of the segment represented by current node , i . e . , st [ node ] l & r -- > Starting and ending indexes of range query
static int MaxUtil ( int [ ] st , int ss , int se , int l , int r , int node ) {