LeetCode
Degree of an Array
Click
here
for an explanation.