Divisible Subset - DIVSUBS

Problem link:

My solution:

Its giving wrong Answer.

Here I am finding the sub array using prefix sum array and using the pigeon-hole principle.

In which test case will my code giving WA i am unable to figure out.

Thanks.

Such a silly mistake, I was printing the elements of the array, but in the problem says to print the index.