Driver code
public static void Main ( String [ ] args ) { int [ ] arr1 = { 3 , 1 , 5 , 7 } ; int [ ] arr2 = { 8 , 2 , 5 , 3 } ; List < int > head1 = new List < int > ( arr1 ) ; List < int > head2 = new List < int > ( arr2 ) ; int x = 10 ; Console . WriteLine ( " Count ▁ = ▁ " + countPairs ( head1 , head2 , x ) ) ; } }