i am not able to understand the query function
what is done in it
Please help me understand the code
@be10046.19,
It’s just inclusion exclusion, like in 1D if you want to find sum of rang [L,R], you will do, sum®-sum(L-1), similarly in 2D you can think of area exclusion, and in 3d of volume.