LeetCode
Consecutive Numbers Sum
Click
here
for an explanation.