Driver code
public static void Main ( String [ ] args ) { int [ ] arr1 = { 3 , 1 , 4 } ; int n = arr1 . Length ; int [ ] arr2 = { 5 , 1 , 2 } ; int m = arr2 . Length ; int k = 2 ; countDist ( arr1 , n , arr2 , m , k ) ; } }