very easy solution || c++
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int minElement(vector<int>& nums) {\n        int ans=INT_MAX;\n        for(int i=0;i<nums.size();i++){\n            int n=nums[i];\n            int digit_sum=0;\n            while(n>0){\n                digit_sum+=n%10;\n                n/=10;\n            }\n            if(digit_sum<ans) ans=digit_sum;\n        }\n        return ans;\n    }\n};\n```
['C++']