how to print subarray containing sum as zero
How to print the subarray having sum zero
u can store the indices of the first and last element
and as soon as it is found, break the loop and print starting from start index to the last one
how to print subarray containing sum as zero
u can store the indices of the first and last element
and as soon as it is found, break the loop and print starting from start index to the last one