There are multiple test cases.
The first line contains a single integer(
), denoting the number of test cases.
For each test case:
The first line contains a single integer(
).
The second line containsintegers
(
).
It is guaranteed that the sum ofdoes not exceed
.
For each test case:
If the permutation does not exist, output “NO” in one line.
Otherwise output “YES” in the first line, then outputintegers in the second line, denoting the permutation
.