LeetCode
Number of Squareful Arrays
Click
here
for an explanation.