There is some error in the TC 1 of this question

All other testcases are passing except this.

instead of using vectors, use array.

Yeah it passed but what is the difference?

insertion in vector takes longer time.