Given two integers n1 and n2, the task is to concatenate these two integers into one integer.
Input: n1 = 12, n2 = 34 Output: 1234 Input: n1 = 1, n2 = 93 Output: 193
Approach: The simplest approach to do this is:
Time Complexity: O(d1+d2) where d1=log10(a) and d2=log10(b)
Auxiliary Space: O(d1+d2)