LeetCode
Summary Ranges
Click
here
for an explanation.