Not able to get the logic

Take N (number of rows), print the following pattern (for N = 4).

                   1           1
                   1 2       2 1  
                   1 2 3   3 2 1
                   1 2 3 4 3 2 1

Hello @dipeshpandey2001 refer this: