Choose a number grid by clicking on it and see how many different numbers appear in the grid. You can see how the same code block is used to solve the problem for each of the four different number grids.
You could add another button to try a different size grid.