[C++] || Track Even and odd negative numbers
neg-> number of negative elements encountered.\n\n E -> previous position where even negative elements were seen.\n\n N -> Previous Position where odd negative 
* `neg`-> number of negative elements encountered.\n\n* `E` -> previous `position` where even negative elements were seen.\n\n* `N` -> Previous Position where odd negative elements were seen.\n\n* When `nums[i]` become zero reset every parameter and start fresh.\n```\nclass Solution {\npublic:\n    int getMaxLen(vector<int>& nums) {\n        int neg = 0 , maxi = 0 ;\n        int E = -1 , N = INT_MIN ;\n        \n        for(int i = 0 ; i < nums.size() ; ++i ){\n            if(nums[i] == 0){\n                neg = 0 , E = i , N = INT_MIN ;\n                continue ;\n            }\n            neg += nums[i] < 0 ;\n            if(neg == 1 and N == INT_MIN) N = i ;\n            if(neg % 2 == 0) maxi = max(maxi,i-E) ;\n            else maxi = max(maxi,i-N) ;\n        }\n        \n        return maxi ;\n    }\n};\n```
['C']