Patterns numbers and stars -1

on submitting this one test case is not getting passed .can u check why?

hello @lovely
ur code is not printing anything for n=1