Pregunta de entrevista de Cashfree

pick longest subarray from given array which sums to zero.