Help me in solving RECUR07 problem

My issue

solution for hidden test case

My code


def print_pattern(n):
    print("****")
    print("***")
    print("**")
    print("*")

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

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