simple java solution | 0ms
\n\n# Code\n\nclass Solution {\n    public int minimumSum(int num) {\n     int [] a=new int[4];\n     int i=0;\n     while(num>0){\n         a[i++]=num%10;\n   
\n\n# Code\n```\nclass Solution {\n    public int minimumSum(int num) {\n     int [] a=new int[4];\n     int i=0;\n     while(num>0){\n         a[i++]=num%10;\n         num/=10;\n     }  \n     Arrays.sort(a);\n     return(((a[0]*10)+(a[3]))+((a[1]*10)+a[2]));\n    }\n}\n```
['Java']