LeetCode
Valid Boomerang
Click
here
for an explanation.