where st , si , ss & se are same as getSumUtil ( ) i - . index of the element to be updated . This index is in input array . diff - . Value to be added to all nodes which have i in range
static void updateValueUtil ( int [ ] st , int ss , int se , int i , int diff , int si ) {