simple and easy C++ solution
if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n###### Let\'s Connect on LinkedIn: www.linkedin.com/in/shishirrsiam\n###### Let\'s Connect on Facebook: ww
# if it\'s help, please up \u2B06 vote! \u2764\uFE0F\n\n###### Let\'s Connect on LinkedIn: www.linkedin.com/in/shishirrsiam\n###### Let\'s Connect on Facebook: www.fb.com/shishirrsiam\n\n\n# Code\n```cpp []\nclass Solution {\npublic:\n    int minElement(vector<int>& nums) \n    {\n        int ans = INT_MAX;\n        for(auto val:nums)\n        {\n            int sum = 0;\n            for(auto ch:to_string(val))\n                sum += ch - \'0\';\n            ans = min(ans, sum);\n        }\n        return ans;\n    }\n};\n```
['Array', 'Math', 'C++']