Function that count the number of integers from array B [ ] such that subtracting element in the range [ 0 , K ] given any element in A [ ]
void countElement ( int A [ ] , int N , int B [ ] , int M , int K ) {