✅Simple Solution
Python\n\nclass Solution:\n    def minElement(self, nums: List[int]) -> int:\n        mini=float(\'inf\')\n        for num in nums:\n            r=0\n          
**Python**\n```\nclass Solution:\n    def minElement(self, nums: List[int]) -> int:\n        mini=float(\'inf\')\n        for num in nums:\n            r=0\n            while num>0:\n                r+= num%10\n                num//=10\n            mini= min(mini, r)\n        return mini\n```\n**C++**\n```\nclass Solution {\npublic:\n    int minElement(vector<int>& nums) {\n        int mini =INT_MAX;\n        for (int num : nums) {\n            int r = 0;\n            while (num > 0) {\n                r += num % 10;\n                num /= 10;\n            }\n            mini =min(mini, r);\n        }\n        return mini;\n    }\n};\n```
['C', 'Python', 'Python3']