Please help to understand this editorial (PCJ18G) chef and pizza

https://discuss.codechef.com/t/pcj18g-editorial/19733

What part of it you are not able to understand?

why we multiply (y+1) with x*y . and the editorialist comes to the solution y * (y+1) * (f(r) - f(l-1)) of this.