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 ) {