


1. Input will always have only two integers that appear exactly once rest will appear twice.
2. Try to do this in linear time and constant space.
The first line of input contains an integer N representing the size of the array.
The second line of input contains an N space-separated integers representing the array elements.
Print the two space-separated elements that appear only once where the first integer is less than the second integer.
2 <= N <= 10^5
-10^5 <= ARR[i] <= 10^5
Time Limit: 1 sec
We will sort the array and run a loop from i = 0 to i = N - 1 and for i’th element check its adjacent element if any one of the adjacents is same then skip this element otherwise we can print this and it will be in sorted order which satisfies the criteria of the problem statement also.