Given an array arr[] where each element is in the range [0, 9], the task is to find the minimum possible sum of two numbers that can be formed using the elements of the array. All digits in the array must be used to form the two numbers. The result should be returned as a string without leading zeros.
Example 1
Input: arr[] = [6, 8, 4, 5, 2, 3]
Output: "604"
Explanation: The minimum sum is formed by numbers 358 and 246.
Example 2
Input: arr[] = [5, 3, 0, 7, 4]
Output: "82"
Explanation: The minimum sum is formed by numbers 35 and 047.
Sign in to write, run, and submit your solution against the full test suite.