Solution in JAVA
class Solution {\n    \n    \n    public static int large(int i,int j,int arr[][]){\n        int l=0;\n        for(int row=i;row<i+3;row++){\n            for(in
class Solution {\n    \n    \n    public static int large(int i,int j,int arr[][]){\n        int l=0;\n        for(int row=i;row<i+3;row++){\n            for(int col=j;col<j+3;col++){\n                if(arr[row][col] > l)\n                    l =arr[row][col];\n            }\n        }\n        return l;\n    }\n    \n    \n    public int[][] largestLocal(int[][] grid) {\n        \n        int arr[][]=new int[grid.length-2][grid.length-2];\n        \n       for(int mrow=0;mrow<grid.length-2;mrow++)\n       {\n          for(int mcol=0;mcol<grid.length-2;mcol++){\n            arr[mrow][mcol]=large(mrow,mcol,grid);\n            }   \n       } \n        \n        return arr;\n        }\n    }\n\t
[]