the XOR sum list bitwise XOR element if list contain element XOR sum equal elementfor example XOR sum 1234 equal 1 xor 2 xor 3 xor 4 4 XOR sum 3 equal 3you give 0indexe array arr1 arr2 consist nonnegative integersconsider list contain result arr1i and arr2j bitwise and j pair 0 arr1length 0 j arr2lengthreturn XOR sum aforementione list Example 1input arr1 123 arr2 65output 0explanation the list 1 and 6 1 and 5 2 and 6 2 and 5 3 and 6 3 and 5 012021the XOR sum 0 xor 1 xor 2 xor 0 xor 2 xor 1 0example 2input arr1 12 arr2 4output 4explanation the list 12 and 4 4 the XOR sum 4 Constraints1 arr1length arr2length 1050 arr1i arr2j 109