Memoization based recursive function to count numbers with even and odd digit sum difference as 1. This function considers leading zero as a digit
static int countRec ( int digits , int esum , int osum , int isOdd , int n ) {