I have written code for many patterns but unable to write for this..... not even getting any hint how to proceed.

I want to generate the following output:

```
1  2  3  4  5 

16 17 18 19 6

15 24 25 20 7

14 23 22 21 8

13 12 11 10 9

```

...where the width and height of the rectangle are specified as inputs.