You are given an integer array a_1,…,a_n. A subsegment of even length a_i,…,a_i+2m−1 is called good if max(a_i,…,a_i+m−1)−max(a_i+m,…,a_i+2m−1)≤k.
Let us define an integer sequence f as follows:
Calculate the sum (a_i+m−1+10)⋅f_m among all good subsegments. Since this number can be large, print it modulo 998,244,353.
The first line contains a single integer t (1≤t≤104) --- the number of test cases. Description of test cases follows.
The first line of each test case contains two integers n, k (1≤n≤5⋅105, 0≤k≤min(n,10)).
The next line contains n integers a_1,a_2,…,a_n (1≤a_i≤n).
It is guaranteed that the sum of n for all test cases does not exceed 5⋅105.
For each test case, print a single integer --- the answer to the problem.