You are given three integers, namely L, R, and X, where X varies from [L,R].
Write a program to find the sum of the number of ways in which X people are chosen. If you choose a personi (1≤i≤X), then you cannot choose its neighboring person.
Input format
Output format
For each test case, print the sum of the number of ways modulo 109+7 in which X people are chosen, where if you choose a personi (1≤i≤X), you can choose one or none of its immediate neighbors, but not both.
Constraints
1≤T≤103
1≤L≤R≤109
Case 1: If number of person is 1, you can either choose it or not choose it. 2 ways.