Cashfree Interview Question

pick longest subarray from given array which sums to zero.