Recursive function to find the count of numbers possible less than N , such that every digit is from the given set of digits
static int calculate ( int pos , int tight , int [ ] D , int sz , String num ) {