give 2D grid 0s 1s return number element large square subgrid 1s border 0 subgrid do not exist grid Example 1input grid 111101111output 9example 2input grid 1100output 1 Constraints1 gridlength 1001 grid0length 100gridij 0 1