C++ || easy solution || 0 ms
\nclass Solution{\npublic:\n    int minimumSum(int num){\n        string s = to_string(num);\n        sort(s.begin(), s.end());\n        int res = (s[0] - \'0\'
```\nclass Solution{\npublic:\n    int minimumSum(int num){\n        string s = to_string(num);\n        sort(s.begin(), s.end());\n        int res = (s[0] - \'0\' + s[1] - \'0\') * 10 + s[2] - \'0\' + s[3] - \'0\';\n        return res;\n    }\n};\n```\nDo **Upvote** if you like the solution :)
['C', 'Sorting']