Can you please tell me what was the problem in my code

static String getSubSet(int[] a, int low, int high) {
	if (low > high) {
		return "No";
	}
	
	if (a[low] + a[high] == 0) {
		return "Yes";
	} else if (a[low] + a[high] > 0) {
		return getSubSet(a, low, high-1);
	} else {
		return getSubSet(a, low+1, high);
	}

}

public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int T = sc.nextInt();
	while (T-- > 0) {
		int S = sc.nextInt();
		int[] a = new int[S];
		for (int i = 0; i < a.length; i++) {
			a[i] = sc.nextInt();
		}
		Arrays.sort(a);
		String res = getSubSet(a, 0, a.length - 1);
		System.out.println(res);
	}
}

hey @nigamshubham1998
try for this input :
1
4
10 9 -3 -6
correct output : Yes