Easy C++ 👀 & Python Solution 🐍
C++\n\nclass Solution {\npublic:\n    int minimumSum(vector<int>& nums) {\n        int ans=INT_MAX;\n        for(int i=0;i<nums.size();i++){\n            for(in
# C++\n```\nclass Solution {\npublic:\n    int minimumSum(vector<int>& nums) {\n        int ans=INT_MAX;\n        for(int i=0;i<nums.size();i++){\n            for(int j=i+1;j<nums.size();j++){\n                for(int k=j+1;k<nums.size();k++){\n                    if(nums[j]>nums[i] && nums[k]<nums[j])\n                    ans=min(ans,nums[i]+nums[j]+nums[k]);\n                }\n            }\n        }\n        if(ans==INT_MAX)\n        return -1;\n        return ans;\n    }\n};\n```\n# Python\n```\nclass Solution:\n    def minimumSum(self, nums: List[int]) -> int:\n        ans=float(\'inf\')\n        for i in range(len(nums)):\n            for j in range(i+1,len(nums)):\n                for k in range(j+1,len(nums)):\n                    if nums[i]<nums[j] and nums[k]<nums[j]:\n                        ans=min(ans,nums[i]+nums[j]+nums[k])\n        return ans if ans!=float(\'inf\') else -1\n```\n***Hope it helps...!!*** \uD83D\uDE07\u270C\uFE0F\n
['Array', 'Python', 'C++', 'Python3']