For this Question: Given two integers N and K which are part of the equation X<sub>1</sub> + X<sub>2</sub> + X<sub>3</sub> +. . + X<sub>K</sub> = N. Find the number of non-negative integral solutions of (X<sub>1</sub>, X<sub>2</sub>,. ., X<sub>K</sub>).

Since the answer can be pretty large, print answer modulo (10^9 + 7)

You may like to read about modular multiplicative inverse.Single line of input containing two space-separated integers N and K

1 <= N, K <= 100000Print the number of solutions modulo (10^9 + 7)Sample Input:
3 2

Sample Output:
4

Explanation:
The solutions are:
(0, 3)
(1, 2)
(2, 1)
(3, 0), I have written this Solution Code: #include<bits/stdc++.h>
#define int            long long
#define ll             long long
#define pb          push_back
#define    endl        '\n'
#define pii         pair<int,int>
#define vi          vector<int>
#define all(a)      (a).begin(),(a).end()
#define F           first
#define S           second
#define sz(x)       (int)x.size()
#define hell        1000000007
#define rep(i,a,b)    for(int i=a;i<b;i++)
#define dep(i,a,b)    for(int i=a;i>=b;i--)
#define lbnd        lower_bound
#define ubnd        upper_bound
#define bs          binary_search
#define mp          make_pair
using namespace std;

const int N = 1e5 + 5;
const int mod = 1e9 + 7;
const int inf = 1e9 + 9;

int power(int a, int b){
    int ans = 1;
    while(b){
        if(b&1)
            ans = (ans*a) % mod;
        b >>= 1;
        a = (a*a) % mod;
    }
    return ans;
}

void solve(){
    int x, y;
    cin >> x >> y;
    x = x + y - 1;
    y = y - 1;
    int ans = 1;
    for(int i = 1; i <= y; i++){
        ans = (ans*(x+1-i)) % mod;
        ans = (ans*power(i, mod-2)) % mod;
    }
    cout << ans;
}


void testcases(){
	int tt = 1; 
	//cin >> tt;
	while(tt--){
		solve();
	}
}

signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

 		clock_t start = clock();
 	

    testcases();


 		cerr << (double)(clock() - start)*1000/CLOCKS_PER_SEC << " ms: ";
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?