human
Write a python function to find the sum of xor of all pairs of numbers in the given list. Here is a solution in Python:
=====
Give me a Python code to find the sum of xor of all pairs of numbers in the given list?
assistant
#Here is Python code to find the sum of xor of all pairs of numbers in the given list.
 def pair_xor_Sum(arr,n) : 
    ans = 0 
    for i in range(0,n) :    
        for j in range(i + 1,n) :   
            ans = ans + (arr[i] ^ arr[j])          
    return ans