Function to find two missing numbers in range [ 1 , n ] . This function assumes that size of array is n - 2 and all array elements are distinct
static void findTwoMissingNumbers ( int arr [ ] , int n ) {