Function to return the count of B length integers which are less than C and they contain digits from set A [ ] only
static int solve ( List < int > A , int B , int C ) { List < int > digit = new List < int > ( ) ; int d , d2 ;