Javascript Solution
\nvar minimumSum = function(num) {\n   let numbers = []\n    for(let i = 0; i<4; i++){\n        numbers.push(~~num % 10)\n        num /= 10\n    }\n    const so
```\nvar minimumSum = function(num) {\n   let numbers = []\n    for(let i = 0; i<4; i++){\n        numbers.push(~~num % 10)\n        num /= 10\n    }\n    const sorted = numbers.sort((a,b) => b - a)\n    return sorted[0] + sorted[1] + (10 *( sorted[2] + sorted[3]))\n};\n```
['JavaScript']