Utility function to count N digit numbers with digit i not appearing more than max_digit [ i ] consecutively
def findCountUtil ( N , maxDigit , position , previous , count ) : NEW_LINE INDENT global dp NEW_LINE DEDENT