I need to define a function that takes a character (such as *) as input and prints a hollow rectangle pattern using a for-loop:
*
* * * * * *