Amin has given an array of distinct numbers, to Niloufar. She came and calculated the value for each two-element subset and wrote it on the board. Now Amin wants to calculate the sum of the numbers written on the board. Help him perform this calculation.
The first line of input contains a positive integer , representing the number of test cases.
In the first line of each test case, there is an integer indicating the number of elements in the array.
The second line of each test case contains positive integers, representing the elements of the array.
Note that the input array is not necessarily sorted.
For each test case, print a single integer representing the sum of the numbers written on the board.