Need more examples for understanding question

can you give me more examples of this question ,
and also tell the answer of this OUTPUT :-

10
1 2 3 4 5 4 3 2 7 9

Hey @Himanshu-Jhawar-2273952536067590
You Can watch Hints Video
it’s Better