Function to count N digit numbers with digit i not appearing more than max_digit [ i ] consecutive times
static void findCount ( int N , int [ ] maxDigit ) { int position = 0 ; int previous = 0 ; int count = 1 ;