Failing all test cases
hello @Ishitagambhir
a) pass ur vector by reference
b)

u r incrementing j twice in above code snippet .
remove anyone of them.
check ur updated code here->
hello @Ishitagambhir
a) pass ur vector by reference
b)

u r incrementing j twice in above code snippet .
remove anyone of them.
check ur updated code here->