I am trying to write a function,that prints out rectangle in a terminal. My function accepts a single input parameter N and output a string with an ASCII art. This what the output should look like:

```
N = 2                           N = 6
########                        ####################
#      #                        #                  #
#  **  #                        #                  #
#  **  #                        #                  #
#      #                        #      ******      #
########                        #      ******      #
                                #      ******      #
N = 4                           #      ******      #
##############                  #      ******      #
#            #                  #      ******      #
#            #                  #                  #
#    ****    #                  #                  #
#    ****    #                  #                  #
#    ****    #                  ####################
#    ****    #
#            #
#            #
##############

```

This is what i have so far :

```
def flag(N):
    if N % 2 == 0:
        border_j = (N * 3) + 2
        border_i = (N * 2) + 2
        for i in range(border_i):
            for j in range(border_j):
                if i in [0, border_i - 1] or j in [0, border_j - 1]:
                    print('#', end='')
                elif j == N + 1 and i == 1 + N / 2:
                    print('*', end='')
                else:
                    print(' ', end='')
            print()
    else:
        raise AssertionError

flag(2)

```

Output: 

```
########
#      #
#  *   #
#      #
#      #
########

```

And after this i've got a little confused. What should i do next?