Random query ,codeforces

https://codeforces.com/problemset/problem/846/F

Statement: “If l > r, then you swap values of l and r”
If we select l and r but if l>r then what would happen …? Will l contain the value of r and r the value of l ?
The answer that was in the video 2*sum-n/n^2…did not considered this i guess…

i didnt understand your doubt…
please clarify

“If l > r, then you swap values of l and r” …this is the line in the question

But when did we use this in the solution provided in the video lectures…

I still didnt get the answer