total. Split it into two zero-free parts a and b with a + b = total, and return the list [a, b].
There may be several such pairs; return the one with the smallest a. At least one pair is guaranteed to exist.total=10 → [1, 9]
The pair [1, 9]: neither 1 nor 9 has a zero, and no first part can be smaller.
total=100 → [1, 99]
1 + 99 = 100, and neither number has a zero.
total=110 → [11, 99]
Pairs [1, 109] up to [10, 100] fail because one of the numbers contains a zero. The first good one is [11, 99].
total=10
[1, 9]
Run checks the first 3 tests in your browser. Submit checks all 118 tests on the server, hidden ones included.