LeetCode
Valid Square
Click
here
for an explanation.