Find the missing element in a given permutation.
Parameter 1 and 2 need to add in interchangeable between each other and both parameters are non-negative numbers. If the result > 100,000,000 return -1.
Example 1:
Parameter 1: 123456
Parameter 2: 879
Result: 182739456
Example 2:
Parameter 1: 12
Parameter 2: 56
Result: 1526
Continue reading “Test: Interswap digits between two numbers”