LeetCode
Largest 1-Bordered Square
Click
here
for an explanation.