below function checks whether product of digits at even places is divisible by sum of digits at odd places
static boolean productSumDivisible ( int n , int size ) { int sum = 0 , product = 1 ; while ( n > 0 ) {