LeetCode
Valid Word Square
Click
here
for an explanation.