Create a program that outputs a hollow rectangle with dimensions n \times m, using asterisks for the edges.
You will receive two integers and (1 \leq n, m \leq 50), which specify the dimensions of the rectangle.
Display a hollow rectangle with dimensions n \times m, where the perimeter is formed by asterisks.
Example 1
Example 2