Largest island

grid is a list of strings of 1 (land) and 0 (water). Write max_island(grid) that returns the number of cells in the largest island (cells connected up, down, left or right), or 0 if there is no land.

max_island(["110", "010", "001"])  ->  3
max_island(["000"])                ->  0

The point is to practise measuring each component rather than just counting them.

def max_island(grid):
    ...