Count of non decreasing arrays of length N formed with values in range L to R
Given are integers N, L and R, the task is to count the number of non decreasing arrays of length N formed with values in range [L, R] with repetition allowed.Examples: Input: N = 4, L = 4, R = 6 Output: 5 All possible arrays are {4, 4, 4, 6}, {4, 4, 5, 6}, {4, 5, 5, 6}, {4, 5, 6, 6} and {4, 6, 6, 6