Create a function sum_x_y, that calculates the sum of the integers from 1 to y (inclusive) minus the sum of the integers from 1 to x (inclusive).

Example

sum_x_y(50, 100)
#> [1] 3775
sum_x_y(100, 3000)
#> [1] 4496450