Find The Odd Occurrence

easy
1. You are given an array of positive integers where all numbers occur even number of times except one number which occurs odd number of times. 2. You have to find the number occurring odd number of times. 3. main takes input from the users. 4. This is a functional problem. 5. You have to complete the solve function. It takes as input an array of integers. It should return the number occurring odd number of times. 6. Don't change the code of main.

Input Format

First line takes input N, denoting the length of the array. Next line takes N space separated integers denoting the array elements. Input is handled for you.

Output Format

Number occurring odd number of times. Output is handled for you.

Constraints

1 <= N <= 30000

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
7 
3 2 3 4 2 1 4
Output
1
Previous
Find The Most Frequent Digit
Next
Find Triplets With Sum Zero

Related Questions