You are given an array $$$a = [a_1, a_2, \dots, a_n]$$$ of length $$$n$$$.
An inversion is a pair of indices $$$(i, j)$$$ such that $$$1 \le i \lt j \le n$$$ and $$$a_i \gt a_j$$$. The inversion count of an array is the total number of inversions.
A cyclic shift of the first $$$k$$$ elements to the end of the array transforms $$$[a_1, a_2, \dots, a_k, a_{k+1}, \dots, a_n]$$$ into $$$[a_{k+1}, \dots, a_n, a_1, a_2, \dots, a_k]$$$.
For each $$$k = 1, ~2, ~\ldots, ~n - 1$$$, solve the following problem and print the answer.
The first line contains an integer $$$t$$$ ($$$1 \le t \le 10^5$$$) — the number of test cases. The description of the test cases follows.
For each test case, the first line contains an integer $$$n$$$ ($$$2 \le n \le 10^5$$$). The second line contains $$$n$$$ integers $$$a_1, a_2, \dots, a_n$$$ ($$$1 \le a_i \le 10^5$$$).
It is guaranteed that the sum of $$$n$$$ over all test cases does not exceed $$$10^6$$$.
For each test case, print $$$n - 1$$$ space-separated integers in a new line, where the $$$k$$$-th integer is the answer for $$$k$$$.
242 3 3 154 3 5 3 3
0 2 0 1 1 1 1