Output format not specified


#1

The answer I found was correct but was unable to get it correct, because I denoted the answer as [a1, a2 … ] and the output format is a1, a2… an


#2

output format is like this 1 2 3 4 5 6 7 8 and so on
and,correct answer is : 5 10 2 1 5 1 2 10