Explanation: This transformation follows three rules depending on the colour of the squares on
each end of the three lines. If both squares are white, they are removed. If both
squares are black, they become white. If there is a black and a white square, then both
squares become black. Option D is correct.