Cashfree interview question

pick longest subarray from given array which sums to zero.