You are given an array with size and two integers and .
Let's define another array with size as the array that's formed by concatenating M copies of array A.
You have to find the number of sub-arrays of the array with sum . Since the answer can be very large you have to print the answer mod 10^9+7.
Input Format:
The first line contains an integer denoting the number of test cases.
The first line of each test case contains 3 space separated integers and and .
Next line contains space separated integers denoting the array elements.
Output Format:
For each test case, print the required answer in a new line.
Constraints:
For the first sample array A is {3,1,5} and m=2.
b={3,1,5,3,1,5}
value of K is 2.
sub-arrays whose sum is l<=K are {1},{1} and hence the answer is 2.