Martin is given an assignment from his teacher about XOR operations but He is unable to solve the assignment.
So, He asked you for your help. The problem goes like :
You are given a list of integers and you are supposed to find the number of pairs with odd XOR value.
Help Martin solving this problem
Input Format
First line contains a single integer T, denoting the number of test cases.
Each test case contains two lines, first line contains a single integer N denoting the size of the list and the last line contains N space separated integers.
Constraints
1<=T<=100
1<=N<=1000
1<=Arr[i]<=1000
Output Format
For each test case print the number of pairs whose XOR is odd.
Sample Input
1
1 2 4
Sample Output
2
my soln but it don’t work