A square divided into equal squares, like a chessboard, in each of which is placed one of a series of…