Question 2$S$ is a $(k+1) \times (k+1)$ Array of Lattice Points. How many squares have their vertices in $S$?