Count integers with specific Digit Sum property
Given 5 integers N, A, B, C, D. Let us say all the integers of length N, have only A or B in their decimal representation. Also, among all these numbers, all the numbers whose decimal representation of the sum of digits of the number contains either C or D or both as one or more digits in the decima