Can't under this result


#1

Please tell me how this output come in one test case [1 ] [2 ] [3 5 ] [4 ] [6 ] [7 ] [8 ]
from my understanding, there is only pair array!