Exercise 2: Display Series with a 2D Array

Display a table of numbers by using a two-dimensional array.

Problem statement

Write a display function that takes an integer size, creates a 2D array of the specified size, and prints the table in the output below.

Sample input