You will need to store the appropriate characters in each element of the array. The formula for the 'X' is as follows:
Elements at index positions where each index is the same should be given a value of '*'.
For example, ,, and so on. This covers the rst diagonal line we need to create.
The second diagonal can be created by storing '*' in the positions where both indexes add up to the
size eld's current value minus one.
For example, if the size is 5, the elements would be , , , , and .
Every other element should be ' ' (a space). This will ensure the array prints correctly.