Driver code
public static void Main ( String [ ] args ) { int [ ] arr1 = { 2 , 3 , 6 , 7 , 9 } ; int [ ] arr2 = { 1 , 4 , 8 , 10 } ; int k = 5 ; int st1 = 0 , st2 = 0 ; Console . WriteLine ( kth ( arr1 , arr2 , 5 , 4 , k , st1 , st2 ) ) ; } }