I think I didn't understand the problem completely. For the given example case shouldn't the sum between `[-2,2] be 2`

rather than `3`

which is given by the solution program. Also, what about the sum between `[1,1]`

I think it should be `5`

but the solution program gives `0`

.

Is something wrong with my understanding of the problem?

Thanks