Java Easiest Solution
\n# Code\n\nclass Solution {\n    public int minimumSum(int num) {\n        int[] nums = new int[4];\n        for (int i = 0; num != 0; ++i) {\n            nums
\n# Code\n```\nclass Solution {\n    public int minimumSum(int num) {\n        int[] nums = new int[4];\n        for (int i = 0; num != 0; ++i) {\n            nums[i] = num % 10;\n            num /= 10;\n        }\n        Arrays.sort(nums);\n        return 10 * (nums[0] + nums[1]) + nums[2] + nums[3];\n    }\n}\n```
['Java']