C++ Easy Solution | |  4 Line Solution
\nclass Solution {\npublic:\n    int findMaxK(vector<int>& nums) {\n        int ans=-1;\n        for(int it : nums)\n        {\n            if(it>0 && count(num
```\nclass Solution {\npublic:\n    int findMaxK(vector<int>& nums) {\n        int ans=-1;\n        for(int it : nums)\n        {\n            if(it>0 && count(nums.begin(),nums.end(),-it)) ans=max(ans,it);\n        }\n        return ans;\n    }\n};\n```
['C', 'C++']