https://llego.dev/posts/how-to-find-longest-zero-sum-subarray-python/