Sort Solution (with step by step explanation)
Intuition\nwe will use sort to solve this problem\n# Approach\nwe convert number to string and split to digits, then we sort it and after that we return sum of 
# Intuition\nwe will use sort to solve this problem\n# Approach\nwe convert number to string and split to digits, then we sort it and after that we return sum of digits\n# Complexity\n- Time complexity:\nO(n)\n- Space complexity:\nO(n)\n# Code\n```\nfunction minimumSum(num: number): number {\n    // convert number to string, split to digit and sort\n    const sorted = String(num).split("").sort((a, b) => +a - +b);\n    // return sum of numbers at inidicies 0 and 2 with numbers at indicies 2 and 3\n    return Number(`${sorted[0]}${sorted[2]}`) + Number(`${sorted[1]}${sorted[3]}`)\n};\n```
['TypeScript']