Bitwise XOR of elements having odd frequency
Given an array arr[] of N elements, the task is to find the XOR of the elements which appear an odd number of times in the array.Examples: Input: arr[] = {1, 2, 1, 3, 3, 4, 2, 3, 1} Output: 6 Elements with odd frequencies are 1, 3 and 4. And (1 ^ 3 ^ 4) = 6 Input: arr[] = {2, 2, 7, 8, 7} Output: 8 N