If n=3 and the nos are -5,0,6 then the number of good subarrays should be 1 but the code is showing 3

doubt regarding challenges