The drawRectangle function that draws a solid rectangle of a specific size on the screen. This function has three parameters.
a. The length: An integer identifying the length of the rectangle in the number of symbols used.
b. The width: An integer identifying the width of the rectangle in the number of symbols used.
c. The fillChar: A character used for drawing the rectangle.
For example, a call like drawRectangle(10, 5, ‘*’) results in the following output on
the screen:
**********
**********
**********
**********
**********