Pergunta de entrevista da empresa Cashfree

pick longest subarray from given array which sums to zero.