The function S is defined as follows.
- S(0,n)=n for every positive integer n
- S(k,n)=S(k−1,1)+S(k−1,2)+⋯+S(k−1,n) for all positive integers k and n
In other words, S(k,n) adds up the values of the function one level below, from 1 through n.
Given k and n, write a program that computes S(k,n) modulo 1,000,000,007.