LeetCode
Number of Boomerangs
Click
here
for an explanation.