1. You will be given an array of size 2n, n+1 elements will be distinct
2. Out of these n+1 elements there will be one element that will repeat n times in the array
3. You need to print this element
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
4 <= Array length<= 10^4 Array length is even 1 <= A[i] <= 10^4
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
8 2 1 3 3 5 3 4 3
Output
3