Sum of binomial coefficients (nCr) in a given range
Given three values, N, L and R, the task is to calculate the sum of binomial coefficients (nCr) for all values of r from L to R. Examples: Input: N = 5, L = 0, R = 3Output: 26Explanation: Sum of 5C0 + 5C1 + 5C2 + 5C3 = 1 + 5 + 10 + 10 = 26. Input: N = 3, L = 3, R = 3Output: 1 Approach(Using factoria