Problem = Manmohan Loves Patterns - 1

In the question , if we input n = 8.
Then does it mean that the output must be as follows :
1
11
111
1001
11111
100001
1111111
10000001

@Riankk
Yes , that is the correct output for input n=8.