Java easy solution
\npublic int[][] flipAndInvertImage(int[][] A) {\n        int row = A.length;\n        int col = A[0].length;\n        int[][] result = new int[row][col];\n    
```\npublic int[][] flipAndInvertImage(int[][] A) {\n        int row = A.length;\n        int col = A[0].length;\n        int[][] result = new int[row][col];\n        \n\t\t// Step 1 : revert\n        for(int i = 0; i < row; i++){\n            for(int j = 0; j < col; j++){\n                result[i][j] = A[i][col-j-1];\n            }\n        }\n        // Step 2: invert\n        for(int i = 0; i < row; i++){\n            for(int j = 0; j < col; j++){\n                result[i][j] = result[i][j] == 1 ? 0 : 1;\n            }\n        }\n        return result;\n    }\n```
['Java']