LeetCode
Arithmetic Slices
Click
here
for an explanation.