Print all subsets of an int array with 0 sum

> Create a sumarray for each element that is equal to sum of all the
elements till that point.
> Check for duplicate values in this sumarray, all the elements between
them will sum to 0
> It works for overlapping intervals too