https://leetcode.com/problems/flipping-an-image/submissions/
class Solution:
    def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
        B=[]
        for i in A:
            k=i[::-1]
            B.append(list(map(lambda x:0 if x==1 else 1,k)))
        return B

084d74f2b38644602e568bac81fed7683180f6b0
https://leetcode.com/problems/flipping-an-image/submissions/
class Solution:
    def flipAndInvertImage(self, A: List[List[int]]) -> List[List[int]]:
        B=[]
        for i in A:
            k=i[::-1]
            B.append(list(map(lambda x:0 if x==1 else 1,k)))
        return B
