You are given a 2D binary grid containing 1s (representing land) and 0s (representing water). Find and return the area of the largest island in the grid. If there are no islands, return 0.
The area of an island is the total number of connected land cells in it, grouped either horizontally or vertically.
Visualizer will appear here