Java Easiest Solution || Faster than 90% of online submission || 1Ms Runtime
\nclass Solution {\n    public int minimumSum(int num) {\n        int[] digits = new int[4];\n        int k =0;\n        while(num>0)\n        {\n            di
```\nclass Solution {\n    public int minimumSum(int num) {\n        int[] digits = new int[4];\n        int k =0;\n        while(num>0)\n        {\n            digits[k++] = num%10;\n            num/=10;\n        }\n        Arrays.sort(digits);\n        return (digits[0]*10+digits[3])+(digits[1]*10+digits[2]);\n    }\n}\n```
['Java']