Print all the pairs with ( a , b ) as ( k , numbers greater than k ) as k % ( num ( > k ) ) = k i . e . 2 % 4 = 2
if ( occ . get ( k ) && k < arr [ i ] ) { document . write ( " " + k + " " + arr [ i ] + " " ) ; isPairFound = true ; }