Find Unique Element

easy
1. You will be given an Array and its length. 2. You will also be given k, the number of times each element repeats in that array, except ONE element. 3. You need to find that ONE unique element, which does not repeat and return it 4. Input and output is handled for you 5. It is a functional problem ,please do not modify main()

Input Format

Input is handled for you.

Output Format

Output is handled for you.

Constraints

2<=k<n<=100
 1<=a[i]<=10000

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 2
2 8 2 9 0 9 0
Output
8
Previous
Find Triplets With Sum Zero
Next
First Come First Serve

Related Questions