You are given an array of non-negative integers. Find the number of pairs of indices , such that , where is the bitwise XOR operator.
Input format
The first line contains a single integer denoting the number of test cases.
For each test case, the first line contains a single integer denoting the size of the array . The next line contains space-seperated integers denoting the elements of the array.
Output format
The output must contain a single integer, that is the number of pairs described in the statement.
Constraints
It is guaranteed that the sum of does not exceed over all test cases.
In the first test case, it can be shown that no pairs satisfy the condition.
In the second test case, the pairs and satisfy the condition, as and .