Function to Return the number of elements of arr [ ] which can be derived from D by performing ( + A , - A , + B , - B )
static int findPossibleDerivables ( int [ ] arr , int n , int D , int A , int B ) {