Driver Code
public static void Main ( String [ ] args ) { int [ ] a1 = { 2 , 3 , 4 } ; int [ ] a2 = { 1 , 6 , 5 , 8 } ; int size1 = a1 . Length ; int size2 = a2 . Length ; int k = 4 ; printKPairs ( a1 , a2 , size1 , size2 , k ) ; } }