Create a picture in the grid by drawing lines between the dots. Click link for…