Find whether a subarray with sum 0 exists; return true if found otherwise false.
Asked in the Live coding stage.
Implement has_zero_sum_subarray(nums). The input is a list of integers. Return true if any non-empty contiguous subarray has sum 0; otherwise return false.
def has_zero_sum_subarray(nums):