Sponsored
Use these hints if you're stuck. Try solving on your own first.
Exclude connected group of 0s on the corners because they are not closed island.
Return number of connected component of 0s on the grid.
Solve with full IDE support and test cases