Largest 1-Bordered Square
Find the largest axis-aligned square in a binary grid whose outer ring is made entirely of ones, with the interior unconstrained. The visual highlights candidate squares and checks their borders as the search sweeps the grid.