Company: Barclays_27july
Difficulty: medium
Count Non-Common Elements in Two Lists Problem Description You are given two lists of different lengths of positive integers. Write an algorithm to count the number of elements that are not common to each list. Input The first line of the input consists of an integer - listInput1_size , an integer representing the number of elements in the first list (N). The second line consists of N space-separated integers representing the first list of positive integers. The third line consists of an integer - listInput2_size , representing the number of elements in the second list (M). The last line consists of M space-separated integers representing the second list of positive integers. Output Print a positive integer representing the count of elements that are not common to both the lists of integers. Examples Example 1: Input: 11 1 1 2 3 4 5 6 7 9 10 10 11 12 13 4 5 6 7 18 19 20 Output: 12 Explanation: The numbers that are not common to both lists are [1, 1, 2, 3, 9, 10, 11, 12, 13, 18, 19, 20]