Find XOR of All Pairings

Given two arrays, consider every possible pairing of one element from the first with one from the second. Compute the XOR of all those paired XOR results. The answer depends only on whether each array has odd or even length.

Examples
Input: [[2,1,3],[10,2,5,0]]
Output: 13
Hints

Find XOR of All Pairings

Given two arrays, consider every possible pairing of one element from the first with one from the second. Compute the XOR of all those paired XOR results. The answer depends only on whether each array has odd or even length.