Given an array[n] containing all numbers from 1-n ( both inclusive) distributed randomly, but missing two random numbers from this range. This means either a single number has been repeated thrice, or two numbers have been repeated twice.
For ex: Array[100] contains number from 1-100 but missing any two numbers.
Devise a method to find the missing two numbers in minimum number of hits, given (n) and array[n]