You are given integers $N$ and $K$. For a positive integer $k$, $f(k)$ is defined as follows.
Answer the remainder of $\sum_{k=1}^{K}{f(k)}$ divided by $998244353$.
For each input, solve $T$ test cases.
Note that $\binom{A}{B}$ represents "the number of ways to select $B$ distinct items from $A$ items" (i.e., the binomial coefficient).
$T$
$\text{case}_1$
$\vdots$
$\text{case}_T$
Each test case is given in the following format.
$N$ $K$
Output the remainder of $\sum_{k=1}^{K}{f(k)}$ divided by $998244353$ for each test case.