Help me in solving RECUR07 problem

My issue

answer for the folloeing question

My code


def print_pattern(n):
    #Write your code here

n = int(input())
print_pattern(n)

Learning course: Design and Analysis of Algorithms
Problem Link: Print Pattern in Design and Analysis of Algorithms