Given a matrix with red and blue squares in it, you can only flip the top left square but there is a chain reaction, which is all the adjacent(up,down, left,right) squares of the same color are flipped accordingly. Example 1: Input: [0, 0, 1, 0] flip [1, 1, 1, 0] flip [0, 0, 0, 0] flip [1, 1, 1, 1] ...