Sponsored
Use these hints if you're stuck. Try solving on your own first.
Sort the digits of num in non decreasing order.
Assign digits to num1 and num2 alternatively.
Solve with full IDE support and test cases