The first line of the input contains an integer $T \ (1 \leq T \leq 2 \times 10^3)$ --- the number of test cases.
The first line of each test case contains two integers $n \ (1 \leq n \leq 10^5)$ and $k \ (1 \leq k \leq \frac{n (n + 1)}{2})$.
The second line of each test case contains a string $S$ with length $n$ consisting of lowercase English letters.
The third line of each test case contains $26$ integers $c_a, c_b, \ldots, c_z \ (1 \leq c_{\alpha} \leq 100)$ --- the energy consumption of each letter.
It is guaranteed that the sum of $n$ among all test cases does not exceed $8 \times 10^5$.