Given a list of N numbers a1,a2,...,aN, your task is to count the following sum.
∑Ni=1∑Nj=1∑Nk=1ai.aj.ak
You need to do this for T test cases.
Constraints
1≤T≤10
1≤N≤105
0≤ai≤9
Input Format
The first line contains a single integer T denoting the number of test cases.
For each test case, the first line contains a single integer N.
The second line of each test case contains N integers a1,a2,...,aN.
Output Format
For each test case, print one integer, i.e., the answer in a single line.
Subtasks
Note: The final answer may not fit into a 32-bit integer.