Find Subarray with Zero Sum Using Hash Map

Given an integer array, check if there exists a subarray (of size at least 1) whose sum is 0. Return true if such a subarray exists, else false.

Difficulty:

Console