Problem Statment
Given an unsorted array of size N of positive integers. One number 'A' from set {1, 2, …N} is missing and one number 'B' occurs twice in array. Find these two numbers. Note: If you find multiple answers then print the Smallest number found.
Example 1:
Input
2
2
2 2
3
1 3 3
Output:
2 1
3 2