Company: Wipro_4nov
Difficulty: medium
Find The Sum of Uncommon Numbers Problem Description You are given two arrays of positive integers, input1 and input2 . A number is uncommon if it occurs in one of the arrays but does not occur anywhere in the other array. Add up all the uncommon numbers from both arrays; call this total sum1 . If an uncommon number occurs several times in its array, every occurrence is added. Then shrink sum1 to one digit: replace it by the sum of its decimal digits, and repeat until the value has a single digit. Return that digit. Complete the function sumOfUncommonNumber with the following parameters: input1 : the first array of positive integers input2 : the second array of positive integers It returns the single digit obtained from sum1 . Input Format The first line contains an integer n , the size of input1 . The second line contains n space-separated integers, the elements of input1 . The third line contains an integer m , the size of input2 . The fourth line contains m space-separated integers,