
Input: ‘N’ = 3
Output:
*
***
*****
The first and only line of each test case contains an integer ‘N’.
Return a 2D array of characters that represents the N-Star Pattern.
1 <= N <= 20
Time Limit: 1 sec
The solution is iterating on the pattern and printing every cell with ‘*’ or spaces.