# PA2 Skeleton Code
# DSA2, spring 2025
# YOUR CODE HERE
# This reads in the input from stdin -- you can always assume that the input is valid
test_cases = int(input())
for _ in range(test_cases):
[s, t] = [int(x) for x in input().split(" ")]
arr = [int(x) for x in input().split(" ")]
# call your function here