Recursive function to return the frequency of numbers having their sum of digits i
static long recursive ( long idx , long sum , long tight , string st , long [ , , ] dp , long num ) { if ( idx == num ) {