🚨 | Flipping an Image | Kunal Kushwaha is the Mentor
\nclass Solution \n{\n    public int[][] flipAndInvertImage(int[][] image) \n    {\n        \n        int[][] b = new int[image.length][image.length];\n        
```\nclass Solution \n{\n    public int[][] flipAndInvertImage(int[][] image) \n    {\n        \n        int[][] b = new int[image.length][image.length];\n        \n        for(int i=0;i<image.length;i++)\n        {\n            int k=0;\n            for(int j=image[i].length-1;j>=0;j--)\n            {\n               b[i][k] = image[i][j];\n               if(b[i][k]==0)\n                   b[i][k] = 1;\n               else\n                   b[i][k] = 0;\n                k++;\n            }\n        }\n        \n        return b;\n        \n    }\n}\n```
['Array']