image
function flipAndInvertImage(image: number[][]): number[][] { return image.map(pixel => { const flip = pixel.reverse() const invert = flip.map(a => a ? 0 : 1) return invert }) };