You are given an n x n binary grid where 1 is land and 0 is water. You are allowed to change at most one water cell (0) to a land cell (1).
Return the size of the largest island in the grid after applying this operation. An island is a 4-directionally connected group of land cells.
Visualizer will appear here