Solution for Submission wrong but test as custom input correct


#1

Those facing with this issue make sure you are not indexing your array/vector out of its size. i.e make sure for vector[i] 0<=i<A.size().
(By default garbage value in the memmory locations are 0 i think)