Simple java solution
\n\n# Code\n\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] q) {\n        int a[][]=new int[n][n];\n        for(int i=0;i<q.length;i++)\n 
\n\n# Code\n```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] q) {\n        int a[][]=new int[n][n];\n        for(int i=0;i<q.length;i++)\n        {\n            for(int i1=q[i][0];i1<=q[i][2];i1++)\n            {\n                for(int j=q[i][1];j<=q[i][3];j++)\n                {\n                    a[i1][j]+=1;\n                    //System.out.println(i1+" "+j);\n                }\n            }\n        }\n        return a;\n    }\n}\n```
['Java']