JAVA || EASY
\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n        int[][] ans = new int[n][n];\n        int q = queries.length;\n       
```\nclass Solution {\n    public int[][] rangeAddQueries(int n, int[][] queries) {\n        int[][] ans = new int[n][n];\n        int q = queries.length;\n        int i = 0,j=0,h=0;\n        for(i=0;i<q;i++){\n            int r1 = queries[i][0], c1 = queries[i][1], r2 = queries[i][2], c2 = queries[i][3];\n            for(j=r1;j<=r2;j++)\n                for(h=c1;h<=c2;h++)\n                    ans[j][h]++;\n            \n        }\n        return ans;\n    }\n}\n```
['Java']