


'N' = 5, 'ARR' = [1, 2, 3, 2, 3]
Output: 1
Except for number 1, all numbers occur an even number of times.
The first line contains a single integer, 'N', representing the size of the array.
The second line contains 'N' space-separated integers.
The only line contains a single integer representing the number occurring odd number of times.
You don't need to print anything. It has already been taken care of. Just implement the given function.
We will run two nested loops and count the occurrence of every element.
If at any moment, we are getting the count as odd, we will just print that element.
We will hash be using a hash data structure, so here we will store the frequency of an element ‘ARR[i]’ at ‘hash[ARR[i]]’.
Each time we encounter a number ARR[i] we will increase the value of hash[ARR[i]]
The bitwise Xor all elements of the array where even occurring elements on Xor will give 0 whereas odd occurring element on xor give us the number since its even occurrence will give 0.